From 138b99cbbab701ef898331e90d6dbb52270cc169 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 20:51:26 +0200 Subject: [PATCH] Integrate authored editor simulation clock in App.tsx --- src/app/App.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index db671017..f257c4fc 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -2463,6 +2463,15 @@ export function App({ store, initialStatusMessage }: AppProps) { : authoredNavigationMode === "firstPerson" ? "Ready for First Person" : "Ready for Third Person"; + const authoredEditorSimulationClock = createRuntimeClockState( + editorState.projectDocument.time + ); + const editorSimulationClock = + editorSimulationClockOverride ?? authoredEditorSimulationClock; + const editorSimulationTimeState = resolveRuntimeTimeState( + editorState.projectDocument.time, + editorSimulationClock + ); const advancedRendering = editorState.document.world.advancedRendering; const hoveredAsset = hoveredAssetId === null