From 126bc6f80da5cfa69674e4a0cd1c27a5ea62a519 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Sun, 31 May 2026 23:34:10 +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=2031/05/2026=2023:34:10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/useModelStore.ts | 14 ++++++++++---- src/stores/useXRStore.ts | 12 ++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/stores/useModelStore.ts b/src/stores/useModelStore.ts index 5cef9de..3bc1eef 100644 --- a/src/stores/useModelStore.ts +++ b/src/stores/useModelStore.ts @@ -4,7 +4,7 @@ import { sendRemoteLog } from '@/lib/remoteLogger'; // ── Persistência de placement (fineTuning + escala) e flags WebXR ───── const PLACEMENT_KEY = 'tsxr_placements_v1'; -const XRFEAT_KEY = 'xrFeatures'; +const XRFEAT_KEY = 'xrFeatures_v2'; const CAMERA_MODE_KEY = 'tsxr_camera_mode_v1'; function loadCameraMode(): 'ortho' | 'persp' { @@ -30,9 +30,15 @@ export interface XRFeatureFlags { bodyTracking: boolean; } const DEFAULT_XR_FEATURES: XRFeatureFlags = { - handTracking: true, planeDetection: true, hitTest: true, domOverlay: true, - anchors: true, meshDetection: true, depthSensing: true, layers: true, - bodyTracking: true, + handTracking: true, + planeDetection: true, + hitTest: true, + domOverlay: true, + anchors: true, + meshDetection: false, + depthSensing: false, + layers: false, + bodyTracking: false, }; function loadXRFeatures(): XRFeatureFlags { try { diff --git a/src/stores/useXRStore.ts b/src/stores/useXRStore.ts index fadfeb5..969276d 100644 --- a/src/stores/useXRStore.ts +++ b/src/stores/useXRStore.ts @@ -7,14 +7,14 @@ function loadXRFeatures() { hitTest: true, domOverlay: true, anchors: true, - meshDetection: true, - depthSensing: true, - layers: true, - bodyTracking: true, - lightEstimation: true, + meshDetection: false, + depthSensing: false, + layers: false, + bodyTracking: false, + lightEstimation: false, }; try { - const raw = localStorage.getItem('xrFeatures'); + const raw = localStorage.getItem('xrFeatures_v2'); if (raw) return { ...defaults, ...JSON.parse(raw) }; } catch (err) { console.warn('[XR] Falha ao ler xrFeatures do localStorage:', err);