mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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());
|
Skin skin = new Skin(defaultSkin ? "default" : input.readStringRef());
|
||||||
|
|
||||||
if (!defaultSkin) {
|
if (!defaultSkin) {
|
||||||
Object[] bones = skeletonData.bones.setSize(input.readInt(true));
|
Object[] bones = skin.bones.setSize(input.readInt(true));
|
||||||
for (int i = 0, n = skeletonData.bones.size; i < n; i++)
|
for (int i = 0, n = skin.bones.size; i < n; i++)
|
||||||
bones[i] = skeletonData.bones.get(input.readInt(true));
|
bones[i] = skin.bones.get(input.readInt(true));
|
||||||
|
|
||||||
for (int i = 0, n = input.readInt(true); i < n; i++)
|
for (int i = 0, n = input.readInt(true); i < n; i++)
|
||||||
skin.constraints.add(skeletonData.ikConstraints.get(input.readInt(true)));
|
skin.constraints.add(skeletonData.ikConstraints.get(input.readInt(true)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user