🚀 Auto-deploy: melhoria no snap e medição AR em 31/05/2026 23:34:10
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user