From 65cdd4529bccabc3a53fa42ee6828abcea893f66 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 19:55:23 +0200 Subject: [PATCH] Include dialogues in RuntimeSceneDefinition and update buildRuntimeSceneFromDocument --- src/runtime-three/runtime-scene-build.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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,