From efc33c5fc400aad29d8483411804ca8a3588997d Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Thu, 19 Jun 2025 19:03:11 -0400 Subject: Various inline cleanup --- src/JSystem/J3DGraphAnimator/J3DMaterialAttach.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/JSystem') 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]); } -- cgit v1.2.3