mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
CameraController now owns switchCameraView. The body lifted from SceneUtils.switchCameraView gets cross-subsystem capabilities (scene access, transform-controls removal, selection write, editor-state and object-panel store actions) through a new CameraControllerDeps object that Editor wires up in initialize(). This keeps subsystems from importing each other directly: the controller sees a narrow callback surface, not SelectionBridge or SceneUtils. Same precedent as the existing ViewportController setters. Deletes: - SceneUtils.switchCameraView (helper.ts) - Editor.switchCameraView facade The space-bar handler in MouseControls now points directly at cameraController.switchCameraView via the callback Editor passes in.