0.9.1: jumpToScene action + auto-play on scene switch

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
thandClaude Opus 4.7 committed 2026-04-22 07:44:43 +02:00
1 parent b57994c754
commit b9f2ba9e47
9 files changed
+436 -15

No files matched your search

+9 -2
View File
@@ -1798,7 +1798,10 @@ export const useSceneStore = defineStore('scene', {
},
/** Activate a page by id. Clears any drill-down state (clip-edit,
* button-edit, selections, drawing) so the new page isn't shown
* through the lens of a context that belongs to another page. */
* through the lens of a context that belongs to another page.
* Every switch auto-starts playback — clicking a scene in the
* drawer or having a script/button jump to one always hands the
* user a running timeline on the new page. */
switchScene(id: string): boolean {
if (!this.project.scenes.find((s) => s.id === id)) return false
this.project.activeSceneId = id
@@ -1812,7 +1815,7 @@ export const useSceneStore = defineStore('scene', {
this.drawingMode = null
this.drawingAssetId = null
this.drawingLayerId = null
this.playing = false
this.playing = true
return true
},
renameScene(id: string, name: string): boolean {
@@ -2401,6 +2404,7 @@ export const useSceneStore = defineStore('scene', {
playbackOut: self.playbackOut,
duration: self.scene.duration,
markers: buildMarkerMap(self.scene.markers),
sceneIds: new Set(self.project.scenes.map((s) => s.id)),
setPlayhead(t: number) {
self.setPlayhead(t)
},
@@ -2410,6 +2414,9 @@ export const useSceneStore = defineStore('scene', {
pause() {
self.pause()
},
switchScene(sceneId: string) {
self.switchScene(sceneId)
},
warn(msg: string) {
// eslint-disable-next-line no-console
console.warn('[ruwio]', msg)