diff --git a/src/document/migrate-scene-document.ts b/src/document/migrate-scene-document.ts index 32af802b..84088266 100644 --- a/src/document/migrate-scene-document.ts +++ b/src/document/migrate-scene-document.ts @@ -3106,6 +3106,8 @@ export function migrateProjectDocument(source: unknown): ProjectDocument { source.version < PROJECT_NAME_SCENE_DOCUMENT_VERSION; const allowMissingEditorPreferences = source.version < SCENE_EDITOR_PREFERENCES_SCENE_DOCUMENT_VERSION; + const allowMissingTimeSettings = + source.version < PROJECT_TIME_SYSTEM_SCENE_DOCUMENT_VERSION; for (const [sceneKey, sceneValue] of Object.entries(source.scenes)) { scenes[sceneKey] = readProjectScene( @@ -3125,6 +3127,9 @@ export function migrateProjectDocument(source: unknown): ProjectDocument { name: readProjectName(source.name, "name", { allowMissing: allowMissingProjectName }), + time: readProjectTimeSettings(source.time, "time", { + allowMissing: allowMissingTimeSettings + }), activeSceneId: expectString(source.activeSceneId, "activeSceneId"), scenes, materials,