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

Function xModelAnimCollStart

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

Source from the content-addressed store, hash-verified

565}
566
567void xModelAnimCollStart(xModelInstance& model)
568{
569 model.Flags = (model.Flags & ~0x1000) | 0x800;
570 if (model.anim_coll.verts == NULL)
571 {
572 U32 size = iModelVertCount(model.Data);
573 if (size != 0)
574 {
575 model.anim_coll.verts = (xVec3*)xMemAlloc(gActiveHeap, size * sizeof(xVec3), 0);
576 }
577 }
578}
579
580void xModelAnimCollRefresh(const xModelInstance& cm)
581{

Callers 1

resetFunction · 0.70

Calls 2

iModelVertCountFunction · 0.85
xMemAllocFunction · 0.70

Tested by

no test coverage detected