Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 18:26:49 +00:00
parent 15fa8606f7
commit 1e19cfca59
+5 -1
View File
@@ -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;