diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-08-19 17:15:39 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-08-20 18:51:42 -0400 |
| commit | 217775af4ef41ac875d53efe4da8f2d19f46e2af (patch) | |
| tree | ea7683dbc31668db546d768bf8a165a7950d436e /include/JSystem/J3DGraphAnimator | |
| parent | a32174dff6bbac81945505d8d86e125ce3443405 (diff) | |
Use precompiled headers, fix weak data issues
Diffstat (limited to 'include/JSystem/J3DGraphAnimator')
| -rw-r--r-- | include/JSystem/J3DGraphAnimator/J3DJoint.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/JSystem/J3DGraphAnimator/J3DJoint.h b/include/JSystem/J3DGraphAnimator/J3DJoint.h index 922a7554..cc110153 100644 --- a/include/JSystem/J3DGraphAnimator/J3DJoint.h +++ b/include/JSystem/J3DGraphAnimator/J3DJoint.h @@ -51,8 +51,7 @@ public: virtual ~J3DMtxCalcBasic() {} virtual void init(const Vec& vec, const Mtx& mtx) { J3DSys::mCurrentS = vec; - // TODO: Same issue as J3DMtxCalcMaya::init. - // J3DSys::mParentS = (Vec){1.0f, 1.0f, 1.0f}; + J3DSys::mParentS = (Vec){1.0f, 1.0f, 1.0f}; J3DSys::mCurrentMtx[0][0] = mtx[0][0] * J3DSys::mCurrentS.x; J3DSys::mCurrentMtx[0][1] = mtx[0][1] * J3DSys::mCurrentS.y; J3DSys::mCurrentMtx[0][2] = mtx[0][2] * J3DSys::mCurrentS.z; @@ -94,11 +93,7 @@ public: J3DMtxCalcMaya() : J3DMtxCalcBasic() {} virtual ~J3DMtxCalcMaya() {} virtual void init(const Vec& vec, const Mtx& mtx) { - // TODO: This breaks some TUs by adding extra data ({0x3F800000, 0x3F800000, 0x3F800000}) - // This seems to be responsible for the @2100 Vec literal that gets added to most TUs. - // The strange part is that @2100 needs to be in the .data section, but uncommenting this - // will put it in the .rodata sections. - // J3DSys::mParentS = (Vec){1.0f, 1.0f, 1.0f}; + J3DSys::mParentS = (Vec){1.0f, 1.0f, 1.0f}; J3DSys::mCurrentS = vec; J3DSys::mCurrentMtx[0][0] = mtx[0][0] * J3DSys::mCurrentS.x; J3DSys::mCurrentMtx[0][1] = mtx[0][1] * J3DSys::mCurrentS.y; |
