Fixed base boxes reappearing with show armor toggle

This commit is contained in:
MayNL
2026-05-25 22:27:05 -04:00
parent 79597db0af
commit 063f46913e
@@ -156,6 +156,10 @@ namespace PckStudio.Rendering
{
if (cubes[i] is CubeMesh cubeMesh)
{
// basic fix for base skin cubes; base cube names start with "Default". If found, ignore
if (cubeMesh.Name.StartsWith("Default"))
continue;
bool hasArmorFlags = cubeMesh.GetCube().ArmorFlags != 0;
bool visible = !(showArmor && hasArmorFlags);