mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
The store's `deleteCamera` resets `selectedCameraId` to `"main"` if the deleted id was active, but the live engine camera kept the deleted camera's pose because pose-restoring code only ran in `handleCameraSelect`. Extract `applyCameraPose` from `handleCameraSelect` and add a `handleDeleteCamera` wrapper that calls the store action then re-applies the main camera's pose if it just became the active one.