Fixed path constraint bone sorting.

This commit is contained in:
NathanSweet 2016-10-07 14:18:17 +02:00
parent 2ea42d4cae
commit f6a6af0643

View File

@ -266,8 +266,12 @@ public class Skeleton {
sortBone(slotBone); sortBone(slotBone);
else { else {
Array<Bone> bones = this.bones; Array<Bone> bones = this.bones;
for (int boneIndex : pathBones) for (int i = 0, n = pathBones.length; i < n;) {
sortBone(bones.get(boneIndex)); int nn = pathBones[i++];
nn += i;
while (i < nn)
sortBone(bones.get(pathBones[i++]));
}
} }
} }