diff --git a/src/pages/XRSession.tsx b/src/pages/XRSession.tsx index 23b0d01..7abd1b7 100644 --- a/src/pages/XRSession.tsx +++ b/src/pages/XRSession.tsx @@ -172,9 +172,13 @@ function XRActiveModel() { function ControllerFineTuning({ freeMove }: { freeMove: boolean }) { const { setFineTuning } = useModelStore(); const session = useXR((s) => s.session); + const isActiveLocked = useModelStore((s) => { + const a = s.models.find(m => m.id === s.activeModelId); + return !!a?.locked; + }); useFrame(() => { - if (!session) return; + if (!session || isActiveLocked) return; const inputSources = session.inputSources; if (!inputSources) return;