From 1e19cfca59561865fe6b94ec7e55c004f977111e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 18:26:49 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/pages/XRSession.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;