summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphAnimator
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2026-01-29 17:18:08 -0500
committerGitHub <noreply@github.com>2026-01-29 14:18:08 -0800
commit050ebb447137e7077903e208b41deccbf0ee23f6 (patch)
treec54e4676aca9283aa11628e714ce9cc18d6b304c /include/JSystem/J3DGraphAnimator
parentc161523338fedf22e206a1c85d2777b4e6f667d0 (diff)
Add missing TUs for Wii/Shield retail (+ filename cleanup) (#3072)
* Fix GCN_mem_alloc.c filename capitalization * Fix up TRK file names in Wii/Shield splits * Add string_TRK * Add cc_gdev * Add Shield-only wstring TUs * Implement NdevExi2A * Add missing JSystem TUs (more are still missing from ShieldD) * Clean up includes
Diffstat (limited to 'include/JSystem/J3DGraphAnimator')
-rw-r--r--include/JSystem/J3DGraphAnimator/J3DJoint.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/JSystem/J3DGraphAnimator/J3DJoint.h b/include/JSystem/J3DGraphAnimator/J3DJoint.h
index 4482e5d618..0a10f035be 100644
--- a/include/JSystem/J3DGraphAnimator/J3DJoint.h
+++ b/include/JSystem/J3DGraphAnimator/J3DJoint.h
@@ -43,7 +43,10 @@ public:
virtual void init(const Vec& param_0, const Mtx&) = 0;
virtual void calc() = 0;
- static J3DMtxBuffer* getMtxBuffer() { return mMtxBuffer; }
+ static J3DMtxBuffer* getMtxBuffer() {
+ J3D_ASSERT_NULLPTR(174, mMtxBuffer != NULL)
+ return mMtxBuffer;
+ }
static J3DJoint* getJoint() {
J3D_ASSERT_NULLPTR(185, mJoint != NULL)
return mJoint;
@@ -234,4 +237,12 @@ struct J3DMtxCalcCalcTransformBasic {
static void calcTransform(J3DTransformInfo const&);
};
+inline s32 checkScaleOne(const Vec& param_0) {
+ if (param_0.x == 1.0f && param_0.y == 1.0f && param_0.z == 1.0f) {
+ return true;
+ } else {
+ return false;
+ }
+}
+
#endif /* J3DJOINT_H */