Update runtime scene build to include scheduler state

This commit is contained in:
2026-04-14 01:57:20 +02:00
parent 97150b283a
commit 037260c85b

View File

@@ -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,