(jointIndex)
| 148 | const processingOrder = []; |
| 149 | |
| 150 | function addJoint(jointIndex) { |
| 151 | if (processed.has(jointIndex)) return; |
| 152 | const joint = joints[jointIndex]; |
| 153 | if (joint.parentIndex >= 0 && !processed.has(joint.parentIndex)) { |
| 154 | addJoint(joint.parentIndex); |
| 155 | } |
| 156 | processingOrder.push(jointIndex); |
| 157 | processed.add(jointIndex); |
| 158 | } |
| 159 | |
| 160 | for (let i = 0; i < boneCount; i++) addJoint(i); |
| 161 |
no test coverage detected