From 5f24e5c85be0403abe277ed2e3ad58702eec28b0 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 22 May 2026 20:17:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20melhoria=20no=20s?= =?UTF-8?q?nap=20e=20medi=C3=A7=C3=A3o=20AR=20em=2022/05/2026=2020:17:13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/three/ModelViewer.tsx | 2 +- src/pages/XRSession.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/three/ModelViewer.tsx b/src/components/three/ModelViewer.tsx index 494e899..e8ea0c2 100644 --- a/src/components/three/ModelViewer.tsx +++ b/src/components/three/ModelViewer.tsx @@ -802,7 +802,7 @@ function SelectionHandler() { /** Walks the scene each time visibility/selection state changes and applies * per-element visibility + emissive highlight for selected elements. */ -function VisibilityApplier() { +export function VisibilityApplier() { const { scene } = useThree(); const nonce = useModelStore((s) => s.visibilityNonce); const models = useModelStore((s) => s.models); diff --git a/src/pages/XRSession.tsx b/src/pages/XRSession.tsx index ce16afb..e650183 100644 --- a/src/pages/XRSession.tsx +++ b/src/pages/XRSession.tsx @@ -22,6 +22,7 @@ import { ControllerLocomotion } from '@/components/three/ControllerLocomotion'; import { useDevKit } from '@/devkit/useDevKit'; import { DevPanel } from '@/devkit/DevPanel'; import { FakeControllers } from '@/devkit/FakeControllers'; +import { VisibilityApplier } from '@/components/three/ModelViewer'; // --- Diagnóstico XR --- console.log('[XR] Inicializando store...'); @@ -158,6 +159,7 @@ function XRModel({ sceneModel }: { sceneModel: import('@/stores/useModelStore'). { - + {/* In-world HUD — visible inside passthrough where DOM overlays cannot reach */}