MCPcopy Create free account
hub / github.com/esengine/esengine / addJoint

Function addJoint

scripts/test-fbxloader-bindpose.mjs:122–130  ·  view source on GitHub ↗
(jointIndex)

Source from the content-addressed store, hash-verified

120 const processingOrder = [];
121
122 function addJoint(jointIndex) {
123 if (processed.has(jointIndex)) return;
124 const joint = joints[jointIndex];
125 if (joint.parentIndex >= 0 && !processed.has(joint.parentIndex)) {
126 addJoint(joint.parentIndex);
127 }
128 processingOrder.push(jointIndex);
129 processed.add(jointIndex);
130 }
131
132 for (let i = 0; i < joints.length; i++) addJoint(i);
133

Callers 1

mainFunction · 0.70

Calls 3

hasMethod · 0.65
pushMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected