mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
GizmoController now reads/writes the store's transformSpace through a new GizmoControllerDeps surface that Editor wires up in initialize(). - changeMode(type) reads the desired space from the store internally (forces local for scale), so callers don't plumb space through. - toggleTransformSpace() owns the read/flip/write/apply loop that used to live on Editor.toggleTransformSpace. Editor.change_mode and Editor.toggleTransformSpace are deleted. Callers updated: - actions/setTransformMode.ts → editor.gizmo.changeMode(...) - Controls3D.tsx → editorEngine?.gizmo.toggleTransformSpace() - keymap.ts → editor.gizmo.changeMode + .toggleTransformSpace; the inline setGizmoMode body shrinks to one line and the duplicate toggleTransformSpace helper is gone.