Hey there, I wasn't sure where to post issues. I'll try it here 🙂
I can't get the skeleton copy constructor to work.
The following exception is thrown when trying to create a skeleton object by using the copy constructor of the skeleton class. Here's a trace using the current git-runtime-version:
Exception in thread "LWJGL Application" java.lang.ArrayIndexOutOfBoundsException: -1
at com.badlogic.gdx.utils.Array.get(Array.java:126)
at com.esotericsoftware.spine.Skeleton.<init>(Skeleton.java:75)
at com.timtips.swarm.components.SpineAnim.<init>(SpineAnim.java:10)
The initially created skeleton works fine. Nevertheless the parent seems to be null when using the copy constructor. Here's a snippet from my json file:
"bones": [
{ "name": "root" },
{ "name": "tail", "parent": "root", "x": 24.16, "y": -3.18 },
{ "name": "body", "parent": "root", "x": -6.71, "y": -0.21 },
{ "name": "foot", "parent": "body", "x": -10.37, "y": -13.17 }
],
Am I missing something?
Thanks for any help.
Tim