Check parent bones come before child bones

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-01 14:41:46 +01:00
1 parent ec29f44db0
commit e81061ad22
1 file changed
+2
+2
View File
@@ -460,8 +460,10 @@ static void read_joint_children(
if (skin.joints[j] == i)
break;
}
assert(j < skin.joint_count);
assert(bones[j].parent == UINT32_MAX);
assert(parent < j);
bones[j].parent = parent;
if (**p == ',')