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

Function GetChildFrameHierarchy

src/SB/Core/gc/iModel.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29static RwRGBA sMaterialColor[IMODEL_MAX_MATERIALS];
30static RwTexture* sMaterialTexture[IMODEL_MAX_MATERIALS];
31static U8 sMaterialAlpha[IMODEL_MAX_MATERIALS];
32
33RwFrame* GetChildFrameHierarchy(RwFrame* frame, void* data)
34{
35 RpHAnimHierarchy* hierarchy = RpHAnimFrameGetHierarchy(frame);
36 if (hierarchy == 0)
37 {
38 RwFrameForAllChildren(frame, &GetChildFrameHierarchy, data);
39 return frame;
40 }
41 else
42 {
43 *(RpHAnimHierarchy**)data = hierarchy;
44 frame = 0;
45 }
46 return frame;
47}
48

Callers 1

GetHierarchyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected