Integrate authored editor simulation clock in App.tsx

This commit is contained in:
2026-04-14 20:51:26 +02:00
parent 47088b5a5f
commit 138b99cbba

View File

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