From 414b1951c66186b3cf88935f00e1046e5dc2b147 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 11:17:02 +0200 Subject: [PATCH] Add player start navigation mode draft handling --- src/app/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 21556374..e1afae2c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1756,6 +1756,7 @@ export function App({ store, initialStatusMessage }: AppProps) { setSpotLightAngleDraft(String(DEFAULT_SPOT_LIGHT_ANGLE_DEGREES)); setSpotLightDirectionDraft(createVec3Draft(DEFAULT_SPOT_LIGHT_DIRECTION)); setPlayerStartYawDraft("0"); + setPlayerStartNavigationModeDraft(DEFAULT_PLAYER_START_NAVIGATION_MODE); setPlayerStartColliderModeDraft("capsule"); setPlayerStartEyeHeightDraft(String(DEFAULT_PLAYER_START_EYE_HEIGHT)); setPlayerStartCapsuleRadiusDraft( @@ -1813,6 +1814,7 @@ export function App({ store, initialStatusMessage }: AppProps) { break; case "playerStart": setPlayerStartYawDraft(String(selectedEntity.yawDegrees)); + setPlayerStartNavigationModeDraft(selectedEntity.navigationMode); setPlayerStartColliderModeDraft(selectedEntity.collider.mode); setPlayerStartEyeHeightDraft(String(selectedEntity.collider.eyeHeight)); setPlayerStartCapsuleRadiusDraft( @@ -3497,7 +3499,6 @@ export function App({ store, initialStatusMessage }: AppProps) { ); return buildRuntimeSceneFromDocument(sceneDocument, { - navigationMode: preferredNavigationMode, loadedModelAssets, sceneEntryId: options.sceneEntryId });