Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 16:45:43 +00:00
parent b302b91de9
commit 306ddef061
+7 -5
View File
@@ -533,14 +533,15 @@ const XRSession = () => {
{effectiveInXR ? (
<>
{/* In XR (or SimXR): grab wrapper → model. Skip hit-test in SimXR mode. */}
{/* In XR (or SimXR): grab wrapper → ACTIVE model. Other models render as static background. */}
<XRBackgroundModels />
{simXR ? (
<group position={[0, 1.0, -1.2]}>
<XRGrabbable
allowScale={allowScale}
onGrabStart={() => { if (placementMode) setPlacementMode(false); }}
>
<XRModel url={model.url} />
<XRActiveModel />
</XRGrabbable>
</group>
) : (
@@ -556,7 +557,7 @@ const XRSession = () => {
allowScale={allowScale}
onGrabStart={() => { if (placementMode) setPlacementMode(false); }}
>
<XRModel url={model.url} />
<XRActiveModel />
</XRGrabbable>
</XRHitTestPlacement>
)}
@@ -580,9 +581,10 @@ const XRSession = () => {
</>
) : (
<>
{/* Desktop preview (no headset): show model with OrbitControls */}
{/* Desktop preview (no headset): show all models with OrbitControls */}
<group position={[0, 0, 0]}>
<XRModel url={model.url} />
<XRBackgroundModels />
<XRActiveModel />
</group>
<XRMeasurementOverlay />
<OrbitControls