Add support for legacy project dialogues in scene document migration
This commit is contained in:
@@ -4869,6 +4869,7 @@ function readProjectScene(
|
|||||||
allowMissingLoadingScreen: boolean;
|
allowMissingLoadingScreen: boolean;
|
||||||
allowMissingEditorPreferences: boolean;
|
allowMissingEditorPreferences: boolean;
|
||||||
legacyProjectTimeValue?: unknown;
|
legacyProjectTimeValue?: unknown;
|
||||||
|
legacyProjectDialogues?: ProjectDialogueLibrary;
|
||||||
}
|
}
|
||||||
): ProjectScene {
|
): ProjectScene {
|
||||||
if (!isRecord(value)) {
|
if (!isRecord(value)) {
|
||||||
@@ -4898,7 +4899,10 @@ function readProjectScene(
|
|||||||
brushes: readBrushes(value.brushes, materials, false),
|
brushes: readBrushes(value.brushes, materials, false),
|
||||||
paths: readScenePaths(value.paths),
|
paths: readScenePaths(value.paths),
|
||||||
modelInstances: readModelInstances(value.modelInstances, assets),
|
modelInstances: readModelInstances(value.modelInstances, assets),
|
||||||
entities: readEntities(value.entities, { legacySoundEmitter: false }),
|
entities: readEntities(value.entities, {
|
||||||
|
legacySoundEmitter: false,
|
||||||
|
legacyProjectDialogues: options.legacyProjectDialogues
|
||||||
|
}),
|
||||||
interactionLinks: readInteractionLinks(value.interactionLinks)
|
interactionLinks: readInteractionLinks(value.interactionLinks)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user