mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
[libgdx] SkeletonBinary, fixed reading a skin's bones.
This commit is contained in:
parent
0b6a3139c5
commit
30a1a9b8c7
@ -332,9 +332,9 @@ public class SkeletonBinary {
|
||||
Skin skin = new Skin(defaultSkin ? "default" : input.readStringRef());
|
||||
|
||||
if (!defaultSkin) {
|
||||
Object[] bones = skeletonData.bones.setSize(input.readInt(true));
|
||||
for (int i = 0, n = skeletonData.bones.size; i < n; i++)
|
||||
bones[i] = skeletonData.bones.get(input.readInt(true));
|
||||
Object[] bones = skin.bones.setSize(input.readInt(true));
|
||||
for (int i = 0, n = skin.bones.size; i < n; i++)
|
||||
bones[i] = skin.bones.get(input.readInt(true));
|
||||
|
||||
for (int i = 0, n = input.readInt(true); i < n; i++)
|
||||
skin.constraints.add(skeletonData.ikConstraints.get(input.readInt(true)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user