From 494203072181bd9a2949811076147b18cc827b5c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 20:08:10 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/components/three/ModelViewer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/three/ModelViewer.tsx b/src/components/three/ModelViewer.tsx index 1d39073..bd176c3 100644 --- a/src/components/three/ModelViewer.tsx +++ b/src/components/three/ModelViewer.tsx @@ -281,7 +281,8 @@ function GLBModel({ sceneModel, isActive }: { sceneModel: SceneModel; isActive: const wq = new THREE.Quaternion(); (calGroupRef.current ?? e.object).getWorldQuaternion(wq); pushModelFaceNormal(n, wq); - if ((calibration.step as string) === 'done') { + // Apply / refresh calibration whenever we have ≥2 pairs. + if (calibration.pairs.length >= 2) { const q = computeCalibrationQuaternion(calibration.pairs); if (q) { useModelStore.getState().setCalibration(sceneModel.id, [q.x, q.y, q.z, q.w]);