feat: include lower part of barrel

This commit is contained in:
TrèsAbhi committed 2024-04-21 17:15:23 -05:00
1 parent 6e91810565
commit eb83039967
2 files changed
+8 -7

No files matched your search

@@ -259,9 +259,9 @@ export const SpacedArmorScene = memo<SpacedArmorSceneProps>(({ scene }) => {
</group>
{modelNodes.map((node) => {
const isCurrentGun =
node.name ===
`gun_${gunModelDefinition.model.toString().padStart(2, '0')}`;
const isCurrentGun = node.name.startsWith(
`gun_${gunModelDefinition.model.toString().padStart(2, '0')}`,
);
const isVisible = isCurrentGun;
if (!isVisible) return null;