summaryrefslogtreecommitdiff
path: root/apps/web/src/components/providers/migrators
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-09-01 22:15:32 +0200
committerMaze Winther <mazewinther@gmail.com>2025-09-01 22:15:32 +0200
commitd8f446580c2636e87aa39c00b1565406c56f9343 (patch)
treed538f50f10d114bc6d5843efb27cc38cd4d39328 /apps/web/src/components/providers/migrators
parentb84e699e9c4f0a56685697f46f52af86479a1265 (diff)
downloadopencut-d8f446580c2636e87aa39c00b1565406c56f9343.tar.gz
feat: remove default background scene and add scene management
Diffstat (limited to 'apps/web/src/components/providers/migrators')
-rw-r--r--apps/web/src/components/providers/migrators/scenes-migrator.tsx12
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/web/src/components/providers/migrators/scenes-migrator.tsx b/apps/web/src/components/providers/migrators/scenes-migrator.tsx
index 521e24af..b984a7f4 100644
--- a/apps/web/src/components/providers/migrators/scenes-migrator.tsx
+++ b/apps/web/src/components/providers/migrators/scenes-migrator.tsx
@@ -92,23 +92,13 @@ export function ScenesMigrator({ children }: { children: React.ReactNode }) {
id: generateUUID(),
name: "Main Scene",
isMain: true,
- isBackground: false,
- createdAt: new Date(),
- updatedAt: new Date(),
- };
-
- const backgroundScene: Scene = {
- id: generateUUID(),
- name: "Background",
- isMain: false,
- isBackground: true,
createdAt: new Date(),
updatedAt: new Date(),
};
const migratedProject: TProject = {
...project,
- scenes: [mainScene, backgroundScene],
+ scenes: [mainScene],
currentSceneId: mainScene.id,
updatedAt: new Date(),
};