summaryrefslogtreecommitdiff
path: root/src/JSystem/J3DGraphBase/J3DTransform.cpp
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2026-01-13 07:49:09 -0800
committerGitHub <noreply@github.com>2026-01-13 17:49:09 +0200
commit1a65a6bbbd263538bd04faae2d9e899d59ec0d5d (patch)
tree806aabed4c624787252b37072c36629c1a559bca /src/JSystem/J3DGraphBase/J3DTransform.cpp
parentdd03bf861fdc92109c57d58cc7436066a8a02430 (diff)
J3D debug (#3037)
* J3DGraphBase debug * J3DGraphAnimator debug * J3DGraphLoader debug
Diffstat (limited to 'src/JSystem/J3DGraphBase/J3DTransform.cpp')
-rw-r--r--src/JSystem/J3DGraphBase/J3DTransform.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DTransform.cpp b/src/JSystem/J3DGraphBase/J3DTransform.cpp
index c1a246d104..9194e6e263 100644
--- a/src/JSystem/J3DGraphBase/J3DTransform.cpp
+++ b/src/JSystem/J3DGraphBase/J3DTransform.cpp
@@ -55,18 +55,22 @@ void J3DCalcBBoardMtx(__REGISTER Mtx mtx) {
__REGISTER f32 zero = 0.0f;
// zero out gaps of zeroes
-#ifdef __MWERKS__ // clang-format off
+#if DEBUG || !defined(__MWERKS__)
+ mtx[0][1] = 0.0f;
+ mtx[0][2] = 0.0f;
+ mtx[2][0] = 0.0f;
+ mtx[2][1] = 0.0f;
+#else // clang-format off
asm {
psq_st zero, 0x04(mtx), 0, 0
-
psq_st zero, 0x20(mtx), 0, 0
}
#endif // clang-format on
mtx[0][0] = x;
- mtx[1][0] = zero;
+ mtx[1][0] = 0.0f;
mtx[1][1] = y;
- mtx[1][2] = zero;
+ mtx[1][2] = 0.0f;
mtx[2][2] = z;
}