From 2741687de13ee1e9b86d78908a2c87eb26f217c4 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 23 Sep 2023 17:08:08 -0700 Subject: [PATCH] J3DShape full match --- configure.py | 2 +- src/JSystem/J3DGraphBase/J3DShape.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index d34159048..a5da38af6 100644 --- a/configure.py +++ b/configure.py @@ -853,7 +853,7 @@ config.libs = [ Object(NonMatching, "JSystem/J3DGraphBase/J3DTransform.cpp"), Object(NonMatching, "JSystem/J3DGraphBase/J3DPacket.cpp"), Object(NonMatching, "JSystem/J3DGraphBase/J3DShapeMtx.cpp"), - Object(NonMatching, "JSystem/J3DGraphBase/J3DShape.cpp"), + Object(Matching, "JSystem/J3DGraphBase/J3DShape.cpp"), Object(NonMatching, "JSystem/J3DGraphBase/J3DMaterial.cpp"), Object(NonMatching, "JSystem/J3DGraphBase/J3DMatBlock.cpp"), Object(NonMatching, "JSystem/J3DGraphBase/J3DTevs.cpp"), diff --git a/src/JSystem/J3DGraphBase/J3DShape.cpp b/src/JSystem/J3DGraphBase/J3DShape.cpp index 1dcd464de..966890774 100644 --- a/src/JSystem/J3DGraphBase/J3DShape.cpp +++ b/src/JSystem/J3DGraphBase/J3DShape.cpp @@ -152,7 +152,9 @@ void J3DShape::makeVtxArrayCmd() { mHasNBT = true; stride[GX_VA_NRM - GX_VA_POS] *= 3; array[GX_VA_NRM - GX_VA_POS] = mVertexData->getVtxNBTArray(); - } else if (vtxDesc->attr == GX_VA_PNMTXIDX && vtxDesc->type != GX_NONE) { + } + + if (vtxDesc->attr == GX_VA_PNMTXIDX && vtxDesc->type != GX_NONE) { mHasPNMTXIdx = true; } }