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

Function xModelInstanceAttach

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

Source from the content-addressed store, hash-verified

245}
246
247void xModelInstanceAttach(xModelInstance* inst, xModelInstance* parent)
248{
249 xModelInstance* curr = parent;
250 while (curr->Next != NULL)
251 {
252 curr = curr->Next;
253 }
254 curr->Next = inst;
255 inst->Parent = parent;
256 if ((inst->Flags & 0x2000) != 0)
257 {
258 inst->Mat = parent->Mat;
259 }
260}
261
262void xModelInstanceUpgradeBrotherShared(xModelInstance* inst, U32 flags)
263{

Callers 3

xEntLoadModelFunction · 0.70
zCollGeom_EntSetupFunction · 0.50
zEntRecurseModelInfoFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected