mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
Fixed skeleton copy ctor.
This commit is contained in:
parent
7bd6f62a2b
commit
1071f3474f
@ -72,7 +72,7 @@ public class Skeleton {
|
||||
|
||||
bones = new Array(skeleton.bones.size);
|
||||
for (Bone bone : skeleton.bones) {
|
||||
Bone parent = bones.get(skeleton.bones.indexOf(bone.parent, true));
|
||||
Bone parent = bone.parent == null ? null : bones.get(skeleton.bones.indexOf(bone.parent, true));
|
||||
bones.add(new Bone(bone, parent));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user