mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 20:03:51 +01:00
feat: hide armor when rotating
This commit is contained in:
1 parent
dd8875e951
commit
2f6b186ea8
3 files changed
+5
-31
No files matched your search
@@ -33,6 +33,7 @@ export function TankDisplay() {
|
||||
if (!state.areTanksAssigned) return;
|
||||
return state.protagonist;
|
||||
});
|
||||
const controlsEnabled = useTankopedia((state) => state.model.controlsEnabled);
|
||||
|
||||
if (!protagonist) return null;
|
||||
|
||||
@@ -133,7 +134,7 @@ export function TankDisplay() {
|
||||
}
|
||||
>
|
||||
<TankModel />
|
||||
{mode === 'armor' && <TankArmor />}
|
||||
{mode === 'armor' && controlsEnabled && <TankArmor />}
|
||||
</Suspense>
|
||||
</Canvas>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user