J3DModel inlines cleanup, procBottleSwing_init match, etc

This commit is contained in:
LagoLunatic
2025-04-10 19:30:51 -04:00
parent 0bb7ff4051
commit 309158e274
51 changed files with 402 additions and 405 deletions
+2 -2
View File
@@ -171,7 +171,7 @@ J3DModel * dPa_modelControl_c::newModel(J3DModelData* modelData) {
if (model->mInit == 0) {
model->mInit = 1;
J3DModel * j3dmodel = model->mModel;
j3dmodel->mModelData = modelData;
j3dmodel->setModelData(modelData);
J3DShapePacket * shapePacket = j3dmodel->getShapePacket(0);
for (u16 j = 0; j < modelData->getShapeNum(); shapePacket++, j++) {
@@ -189,7 +189,7 @@ J3DModel * dPa_modelControl_c::newModel(J3DModelData* modelData) {
matPacket->setDisplayListObj(mat->getSharedDisplayListObj());
}
j3dmodel->mVertexBuffer.setVertexData(&modelData->getVertexData());
j3dmodel->getVertexBuffer()->setVertexData(&modelData->getVertexData());
return model->mModel;
}
}