diff options
Diffstat (limited to 'include/JSystem/J3DGraphAnimator')
| -rw-r--r-- | include/JSystem/J3DGraphAnimator/J3DJoint.h | 13 |
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 */ |
