mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 20:35:43 +01:00
fix: hide on rotate
This commit is contained in:
1 parent
92c81d60db
commit
99123b733d
2 files changed
+7
-7
No files matched your search
@@ -42,7 +42,6 @@ export function TankDisplay() {
|
||||
if (!state.areTanksAssigned) return;
|
||||
return state.protagonist;
|
||||
});
|
||||
const controlsEnabled = useTankopedia((state) => state.model.controlsEnabled);
|
||||
|
||||
if (!protagonist) return null;
|
||||
|
||||
@@ -143,11 +142,7 @@ export function TankDisplay() {
|
||||
}
|
||||
>
|
||||
<TankModel />
|
||||
{mode === 'armor' && (
|
||||
<group visible={controlsEnabled}>
|
||||
<TankArmor />
|
||||
</group>
|
||||
)}
|
||||
{mode === 'armor' && <TankArmor />}
|
||||
</Suspense>
|
||||
</Canvas>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user