From 7343441ee84722f4d55c754e124701fa9d47eeb9 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 15 Apr 2026 09:22:44 +0200 Subject: [PATCH] Add support for legacy project dialogues in scene document migration --- src/document/migrate-scene-document.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/document/migrate-scene-document.ts b/src/document/migrate-scene-document.ts index fda113e0..92bb24a7 100644 --- a/src/document/migrate-scene-document.ts +++ b/src/document/migrate-scene-document.ts @@ -4869,6 +4869,7 @@ function readProjectScene( allowMissingLoadingScreen: boolean; allowMissingEditorPreferences: boolean; legacyProjectTimeValue?: unknown; + legacyProjectDialogues?: ProjectDialogueLibrary; } ): ProjectScene { if (!isRecord(value)) { @@ -4898,7 +4899,10 @@ function readProjectScene( brushes: readBrushes(value.brushes, materials, false), paths: readScenePaths(value.paths), modelInstances: readModelInstances(value.modelInstances, assets), - entities: readEntities(value.entities, { legacySoundEmitter: false }), + entities: readEntities(value.entities, { + legacySoundEmitter: false, + legacyProjectDialogues: options.legacyProjectDialogues + }), interactionLinks: readInteractionLinks(value.interactionLinks) }; }