mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed path constraint bone sorting.
This commit is contained in:
parent
715578983c
commit
c34db336d5
@ -261,8 +261,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++]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user