MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xModelInstanceUpgradeBrotherShared

Function xModelInstanceUpgradeBrotherShared

src/SB/Core/x/xModel.cpp:262–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void xModelInstanceUpgradeBrotherShared(xModelInstance* inst, U32 flags)
263{
264 if ((inst->Flags & 0x2000) && !(flags & 0x2000))
265 {
266 U32 boneCount = iModelNumBones(inst->Data);
267 RwMatrix* allocmats = (RwMatrix*)xMemAllocSizeAlign(
268 ((1 + boneCount + ((flags >> 6) & 0x1))) * sizeof(RwMatrix), 16);
269 inst->Mat = allocmats;
270 inst->Flags = flags;
271 }
272}
273
274void xModelUpdate(xModelInstance* modelInst, F32 timeDelta)
275{

Callers 1

init_modelsFunction · 0.50

Calls 1

iModelNumBonesFunction · 0.85

Tested by

no test coverage detected