Files
tww/src/d/d_bg_w_deform.cpp
T
2025-02-23 19:59:54 -05:00

31 lines
902 B
C++

//
// Generated by dtk
// Translation Unit: d_bg_w_deform.cpp
//
#include "d/d_bg_w_deform.h"
#include "JSystem/J3DGraphAnimator/J3DModel.h"
#include "JSystem/J3DGraphAnimator/J3DModelData.h"
/* 800A9928-800A9A48 .text Set__10dBgWDeformFP6cBgD_tP8J3DModelUl */
bool dBgWDeform::Set(cBgD_t* bgd, J3DModel* pmodel, u32 flag) {
JUT_ASSERT(32, pmodel->getModelData()->isDeformablePositionFormat() == true);
if (cBgW::Set(bgd, MOVE_BG_e | NO_CALC_VTX_e | NO_VTX_TBL_e | GLOBAL_e, NULL)) {
return true;
}
SetFlag(flag);
if (pmodel->setSkinDeform(this, 1) == J3DErrType_OutOfMemory) {
return true;
}
pmodel->offFlag(J3DMdlFlag_SkinNrmCpu);
pmodel->onFlag(J3DMdlFlag_SkinPosCpu);
if (ChkNoCrrPos()) {
return false;
}
SetBackVtx(new Vec[pm_bgd->m_v_num]);
if (GetBackVtx() == NULL) {
return true;
}
return false;
}