Add support for legacy project dialogues in scene document migration

This commit is contained in:
2026-04-15 09:22:44 +02:00
parent f9a714b6b0
commit 7343441ee8

View File

@@ -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)
};
}