diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 1ed6117e..fbd581da 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -57,6 +57,10 @@ import { cloneWorldSettings, type WorldSettings } from "../document/world-settings"; +import { + cloneProjectDialogueLibrary, + type ProjectDialogueLibrary +} from "../dialogues/project-dialogues"; import { type CharacterColliderSettings, clonePlayerStartInputBindings, @@ -379,6 +383,7 @@ export interface RuntimeSpawnPoint { export interface RuntimeSceneDefinition { time: ProjectTimeSettings; scheduler: RuntimeProjectSchedulerState; + dialogues: ProjectDialogueLibrary; world: WorldSettings; control: RuntimeControlSurfaceDefinition; localLights: RuntimeLocalLightCollection; @@ -1657,6 +1662,7 @@ export function buildRuntimeSceneFromDocument( document: cloneProjectScheduler(document.scheduler), resolved: collections.scheduler }), + dialogues: cloneProjectDialogueLibrary(document.dialogues), world: cloneWorldSettings(document.world), control, localLights: collections.localLights,