Reverted to commit c93e56640d

This commit is contained in:
gpt-engineer-app[bot]
2026-05-24 18:56:17 +00:00
parent 13c1ad315d
commit 79b95ce3c8
17 changed files with 1069 additions and 1878 deletions
+5 -10
View File
@@ -4,7 +4,6 @@ import { Button } from "@/components/ui/button";
import { useModelStore } from "@/stores/useModelStore";
import { ModelViewerCanvas } from "@/components/three/ModelViewer";
import { ViewerControls } from "@/components/ViewerControls";
import { ViewCube } from "@/components/ViewCube";
import { InspectionChecklist } from "@/components/InspectionChecklist";
import { FineTuningControls } from "@/components/FineTuningControls";
import { MeasurementsList } from "@/components/MeasurementsList";
@@ -93,12 +92,11 @@ const Viewer = () => {
if (!model) return null;
const handleEnterXR = async () => {
try {
await xrStore.enterAR();
} catch (e) {
console.error('[XR] Falha ao entrar no AR:', e);
toast.error("Não foi possível iniciar a sessão AR. Certifique-se de que está usando um dispositivo compatível (como Meta Quest 3).");
if (!xrSupported) {
toast.error("WebXR não é suportado neste navegador. Use o navegador do Meta Quest 3.");
return;
}
navigate("/xr");
};
const canAddMore = models.length < maxModels;
@@ -110,8 +108,6 @@ const Viewer = () => {
type="file"
accept={ACCEPTED_EXTENSIONS}
className="hidden"
title="Adicionar arquivo de modelo 3D"
aria-label="Adicionar arquivo de modelo 3D"
onChange={handleFileUpload}
/>
@@ -133,7 +129,7 @@ const Viewer = () => {
<ShareButton />
<Button className="gap-2 glow-primary" disabled={!xrSupported} onClick={handleEnterXR}>
<Glasses className="h-4 w-4" />
Iniciar AR
Entrar em Modo XR
</Button>
</div>
</header>
@@ -143,7 +139,6 @@ const Viewer = () => {
<div className="relative flex-1">
<ModelViewerCanvas />
<ViewerControls />
<ViewCube />
</div>
{/* Side panel */}