diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-06-19 19:03:11 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-06-19 19:03:11 -0400 |
| commit | efc33c5fc400aad29d8483411804ca8a3588997d (patch) | |
| tree | ee3e250bc314d1d2364ec05f791a4a0d9227b7d2 /src/JSystem | |
| parent | b295d48d1d9e6219224f826684675c3fba954c0b (diff) | |
Various inline cleanup
Diffstat (limited to 'src/JSystem')
| -rw-r--r-- | src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp b/src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp index 44eeb10a..7f22f64c 100644 --- a/src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp +++ b/src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp @@ -83,10 +83,11 @@ s32 J3DMaterialTable::entryTexMtxAnimator(J3DAnmTextureSRTKey* btk) { J3DTexMtx *tmtx = pMaterial->getTexMtx(texMtxID); J3DTexMtxAnm* tmtxanm = new J3DTexMtxAnm(btk, no); - tmtx->getTexMtxInfo().mInfo = ((tmtx->getTexMtxInfo().mInfo) & 0x7F) | (btk->getTexMtxCalcType() << 7); - tmtx->getTexMtxInfo().mCenter.x = btk->getSRTCenter(no).x; - tmtx->getTexMtxInfo().mCenter.y = btk->getSRTCenter(no).y; - tmtx->getTexMtxInfo().mCenter.z = btk->getSRTCenter(no).z; + J3DTexMtxInfo& tmtxinfo = tmtx->getTexMtxInfo(); + tmtxinfo.mInfo = (tmtxinfo.mInfo & 0x7F) | btk->getTexMtxCalcType() << 7; + tmtxinfo.mCenter.x = btk->getSRTCenter(no).x; + tmtxinfo.mCenter.y = btk->getSRTCenter(no).y; + tmtxinfo.mCenter.z = btk->getSRTCenter(no).z; pMatAnm->setTexMtxAnm(texMtxID, tmtxanm); } @@ -291,10 +292,11 @@ s32 J3DMaterialTable::setTexMtxAnimator(J3DAnmTextureSRTKey* btk, J3DTexMtxAnm* pMaterial->getTexCoord(texMtxID)->setTexGenMtx(GX_TEXMTX0 + (texMtxID & 0xFF) * 3); J3DTexMtx *tmtx = pMaterial->getTexMtx(texMtxID); - tmtx->getTexMtxInfo().mInfo = ((tmtx->getTexMtxInfo().mInfo) & 0x7F) | (btk->getTexMtxCalcType() << 7); - tmtx->getTexMtxInfo().mCenter.x = btk->getSRTCenter(no).x; - tmtx->getTexMtxInfo().mCenter.y = btk->getSRTCenter(no).y; - tmtx->getTexMtxInfo().mCenter.z = btk->getSRTCenter(no).z; + J3DTexMtxInfo& tmtxinfo = tmtx->getTexMtxInfo(); + tmtxinfo.mInfo = (tmtxinfo.mInfo & 0x7F) | btk->getTexMtxCalcType() << 7; + tmtxinfo.mCenter.x = btk->getSRTCenter(no).x; + tmtxinfo.mCenter.y = btk->getSRTCenter(no).y; + tmtxinfo.mCenter.z = btk->getSRTCenter(no).z; pMatAnm->setTexMtxAnm(texMtxID, &pTexAnm[no]); } |
