Check parent bones come before child bones
This commit is contained in:
1 parent
ec29f44db0
commit
e81061ad22
1 file changed
+2
@@ -460,8 +460,10 @@ static void read_joint_children(
|
|||||||
if (skin.joints[j] == i)
|
if (skin.joints[j] == i)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(j < skin.joint_count);
|
assert(j < skin.joint_count);
|
||||||
assert(bones[j].parent == UINT32_MAX);
|
assert(bones[j].parent == UINT32_MAX);
|
||||||
|
assert(parent < j);
|
||||||
bones[j].parent = parent;
|
bones[j].parent = parent;
|
||||||
|
|
||||||
if (**p == ',')
|
if (**p == ',')
|
||||||
|
|||||||
Reference in new issue
Block a user