From 0eea73a3d2a9fe4b537858f3726da8e39995eed8 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Thu, 14 May 2026 18:26:06 +0000
Subject: [PATCH] Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
---
src/pages/XRSession.tsx | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/pages/XRSession.tsx b/src/pages/XRSession.tsx
index dd65883..4607bce 100644
--- a/src/pages/XRSession.tsx
+++ b/src/pages/XRSession.tsx
@@ -485,12 +485,15 @@ const XRSession = () => {
{effectiveInXR ? (
<>
- {/* In XR (or SimXR): grab wrapper → ACTIVE model. Other models render as static background. */}
-
+ {/* In XR (or SimXR): all models share the same placement origin so
+ switching active doesn't make others appear to "disappear".
+ Only the ACTIVE model receives grab transforms. */}
{simXR ? (
+
{ if (placementMode) setPlacementMode(false); }}
>
@@ -505,8 +508,10 @@ const XRSession = () => {
toast.success('Modelo posicionado na superfície!');
}}
>
+
{ if (placementMode) setPlacementMode(false); }}
>