sortReset method
Implementation
void sortReset(List<Bone> bones) {
final int n = bones.length;
for (int i = 0; i < n; i++) {
final Bone bone = bones[i];
if (bone.sorted) sortReset(bone.children);
bone.sorted = false;
}
}
void sortReset(List<Bone> bones) {
final int n = bones.length;
for (int i = 0; i < n; i++) {
final Bone bone = bones[i];
if (bone.sorted) sortReset(bone.children);
bone.sorted = false;
}
}