This commit is contained in:
Maze Winther 2026-02-03 08:48:32 +01:00
parent 9bc35363b9
commit 34daad9df7
1 changed files with 4 additions and 0 deletions

View File

@ -117,15 +117,19 @@ function checkProjectVersion({ project }: { project: unknown }): number {
}
const versionValue = project.version;
// v2 and up
if (typeof versionValue === "number") {
return versionValue;
}
// v1 (got scenes)
const scenesValue = project.scenes;
if (Array.isArray(scenesValue) && scenesValue.length > 0) {
return 1;
}
// v0 (didn't have scenes)
return 0;
}