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

Function xMovePointSetup

src/SB/Core/x/xMovePoint.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void xMovePointSetup(xMovePoint* m, xScene* sc)
52{
53 m->node_wt_sum = 0;
54 U32* pointIds = (U32*)(m->asset + 1);
55 for (U16 idx = 0; idx < m->asset->numPoints; ++idx)
56 {
57 U32 id = pointIds[idx];
58 m->nodes[idx] = (xMovePoint*)xSceneResolvID(sc, id);
59 m->node_wt_sum += m->nodes[idx]->asset->wt;
60 m->nodes[idx]->prev = m;
61 }
62}
63
64void xMovePointSplineDestroy(xMovePoint* m)
65{

Callers 1

zMovePointSetupFunction · 0.50

Calls 1

xSceneResolvIDFunction · 0.85

Tested by

no test coverage detected