Scene document: accept the Stories fields only from version 7

stories, storyThumb and storyTags arrived with version 7, so they are
gated by version like anchors and dataPacks.
This commit is contained in:
Sameh Khamis committed 2026-11-16 13:40:17 -08:00
1 parent 1fa053e22d
commit 20f6ceb74c
4 files changed
+30 -14

No files matched your search

+1 -3
View File
@@ -95,11 +95,9 @@ export function validateSceneDocument(project) {
'releaseLayerIds',
'appliedShotPacks',
'shots',
'stories',
'storyThumb',
'storyTags',
...(version >= 4 ? ['anchors'] : []),
...(version >= 5 ? ['dataPacks'] : []),
...(version >= 7 ? ['stories', 'storyThumb', 'storyTags'] : []),
]);
uniqueId(scene, path, sceneIds);
optional(scene, 'title', path, (v, p) => string(v, p, 4096));