d_bg_w_sv OK

This commit is contained in:
LagoLunatic
2024-02-10 19:47:09 -05:00
parent 256665d6c1
commit 246573f131
4 changed files with 132 additions and 27 deletions
+4 -4
View File
@@ -13,17 +13,17 @@ bool dBgWDeform::Set(cBgD_t* bgd, J3DModel* pmodel, u32 r30) {
if (cBgW::Set(bgd, 0x33, NULL)) {
return true;
}
mBC = r30;
SetFlag(r30);
if (pmodel->setSkinDeform(this, 1) == J3DErrType_OutOfMemory) {
return true;
}
pmodel->offFlag(J3DMdlFlag_SkinNrmCpu);
pmodel->onFlag(J3DMdlFlag_SkinPosCpu);
if (mBC & 1) {
if (ChkNoCrrPos()) {
return false;
}
mC0 = new Vec[pm_bgd->m_v_num];
if (mC0 == NULL) {
SetBackVtx(new Vec[pm_bgd->m_v_num]);
if (GetBackVtx() == NULL) {
return true;
}
return false;