From e331e947153afc24fb54bfb6413f14ace9e5dc8a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 15:43:58 +0200 Subject: [PATCH] Update serialization version for interaction angles and track interactable state in viewport host --- src/viewport-three/viewport-host.ts | 4 ++++ tests/serialization/scene-document-json.test.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 9730dff1..7c9115c2 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -707,6 +707,10 @@ export class ViewportHost { private currentWorld: WorldSettings | null = null; private currentSimulationScene: RuntimeSceneDefinition | null = null; private currentSimulationClock: RuntimeClockState | null = null; + private readonly simulationInteractableEnabledById = new Map< + string, + boolean + >(); private currentCelestialShadowCaster: "sun" | "moon" | null = null; private currentAdvancedRenderingSettings: AdvancedRenderingSettings | null = null; diff --git a/tests/serialization/scene-document-json.test.ts b/tests/serialization/scene-document-json.test.ts index 870c9cf5..906fde9c 100644 --- a/tests/serialization/scene-document-json.test.ts +++ b/tests/serialization/scene-document-json.test.ts @@ -38,7 +38,7 @@ import { PLAYER_START_AIR_CONTROL_SCENE_DOCUMENT_VERSION, PLAYER_START_AIR_DIRECTION_CONTROL_SCENE_DOCUMENT_VERSION, PLAYER_START_COLLIDER_SETTINGS_SCENE_DOCUMENT_VERSION, - PLAYER_START_INTERACT_BINDINGS_SCENE_DOCUMENT_VERSION, + PLAYER_START_INTERACTION_ANGLE_SCENE_DOCUMENT_VERSION, PLAYER_START_INPUT_BINDINGS_SCENE_DOCUMENT_VERSION, PLAYER_START_MOVEMENT_TEMPLATE_SCENE_DOCUMENT_VERSION, PLAYER_START_NAVIGATION_MODE_SCENE_DOCUMENT_VERSION,