From 037260c85b5dc891f64549be16fcee16125ae635 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 01:57:20 +0200 Subject: [PATCH] Update runtime scene build to include scheduler state --- src/runtime-three/runtime-scene-build.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 54ba3a09..15b1bfa5 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -1304,11 +1304,9 @@ export function buildRuntimeSceneFromDocument( const paths = getScenePaths(document.paths) .filter((path) => path.enabled) .map(buildRuntimePath); - const runtimeTimeOfDayHours = - options.runtimeClock?.timeOfDayHours ?? document.time.startTimeOfDayHours; const collections = buildRuntimeSceneCollections( document, - runtimeTimeOfDayHours + options.runtimeClock ?? null ); const control = buildRuntimeControlSurface( document, @@ -1406,6 +1404,10 @@ export function buildRuntimeSceneFromDocument( return { time: cloneProjectTimeSettings(document.time), + scheduler: createRuntimeProjectSchedulerState({ + document: cloneProjectScheduler(document.scheduler), + resolved: collections.scheduler + }), world: cloneWorldSettings(document.world), control, localLights: collections.localLights,