UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

17 lines 503 B
import root from "../../api/root"; import { pushUndoStack } from "../../api/undoStack"; import { selectionTargetPtr } from "../../pointers/selectionTargetPtr"; export default (to) => { const [target] = selectionTargetPtr; if (!target) return; pushUndoStack({ [target.uuid]: { command: "move", commandFrom: (target.parent ?? root).uuid, commandTo: to.uuid } }); to.attach(target); }; //# sourceMappingURL=moveSelected.js.map