some J3D/misc cleanup (#2628)

* some j3d cleanup

* begin using uintptr_t

* j3dgraphbase cleanup

* j3dgraphanimator cleanup
This commit is contained in:
TakaRikka
2025-09-04 07:56:59 -07:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
+6 -6
View File
@@ -3289,7 +3289,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mBodyParts[i].mpMorf->getModel()->setUserArea((u32)i_this);
a_this->mBodyParts[i].mpMorf->getModel()->setUserArea((uintptr_t)i_this);
for (u16 j = 0; j < a_this->mBodyParts[i].mpMorf->getModel()->getModelData()->getJointNum();
j++)
@@ -3320,7 +3320,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mBodyParts[i].mpFinMorf->getModel()->setUserArea((u32)i_this);
a_this->mBodyParts[i].mpFinMorf->getModel()->setUserArea((uintptr_t)i_this);
for (u16 j = 0;
j < a_this->mBodyParts[i].mpFinMorf->getModel()->getModelData()->getJointNum();
@@ -3351,7 +3351,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mBodyParts[i].mpFinUnkMorf->getModel()->setUserArea((u32)i_this);
a_this->mBodyParts[i].mpFinUnkMorf->getModel()->setUserArea((uintptr_t)i_this);
for (u16 j = 0;
j < a_this->mBodyParts[i].mpFinUnkMorf->getModel()->getModelData()->getJointNum();
@@ -3376,7 +3376,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mBodyParts[i].mpFinBMorf->getModel()->setUserArea((u32)i_this);
a_this->mBodyParts[i].mpFinBMorf->getModel()->setUserArea((uintptr_t)i_this);
for (u16 j = 0;
j < a_this->mBodyParts[i].mpFinBMorf->getModel()->getModelData()->getJointNum();
@@ -3401,7 +3401,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mBodyParts[i].mpFinCMorf->getModel()->setUserArea((u32)i_this);
a_this->mBodyParts[i].mpFinCMorf->getModel()->setUserArea((uintptr_t)i_this);
for (u16 j = 0;
j < a_this->mBodyParts[i].mpFinCMorf->getModel()->getModelData()->getJointNum();
@@ -3424,7 +3424,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 0;
}
a_this->mpSuiModel->setUserArea((u32)i_this);
a_this->mpSuiModel->setUserArea((uintptr_t)i_this);
for (u16 j = 0; j < modelData->getJointNum(); j++) {
modelData->getJointNodePointer(j)->setCallBack(sui_nodeCallBack);