mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
Fixed path constraint bone sorting.
This commit is contained in:
parent
2ea42d4cae
commit
f6a6af0643
@ -266,8 +266,12 @@ public class Skeleton {
|
||||
sortBone(slotBone);
|
||||
else {
|
||||
Array<Bone> bones = this.bones;
|
||||
for (int boneIndex : pathBones)
|
||||
sortBone(bones.get(boneIndex));
|
||||
for (int i = 0, n = pathBones.length; i < n;) {
|
||||
int nn = pathBones[i++];
|
||||
nn += i;
|
||||
while (i < nn)
|
||||
sortBone(bones.get(pathBones[i++]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user