fix bookmarks bug

This commit is contained in:
Maze Winther
2026-01-27 20:36:54 +01:00
parent 8719f6db27
commit 63ee74c72b
+4 -3
View File
@@ -231,9 +231,10 @@ export class ScenesManager {
activeSceneId?: string; activeSceneId?: string;
}): void { }): void {
this.list = scenes; this.list = scenes;
this.active = activeSceneId const nextActiveSceneId = activeSceneId ?? this.active?.id ?? null;
? (scenes.find((s) => s.id === activeSceneId) ?? null) this.active = nextActiveSceneId
: this.active; ? (scenes.find((scene) => scene.id === nextActiveSceneId) ?? null)
: null;
this.notify(); this.notify();
const activeProject = this.editor.project.getActive(); const activeProject = this.editor.project.getActive();