- Modificato
Problems with libGDX binary loader
Hi
After upgrading my libGDX runtime to match the latest editor, I have problems during loading. When I use the binary loader, it seems to not respect the scale I set with JsonBinary.setScale() before I call readSkeletonData().
Loading from Json works fine.
I have attached both Json and Skel files from one of our Spine files. I am running Linux.
Are you using Spine Essential? Is it only happening with RegionAttachments?
Try opening your SkeletonBinary.java
and look for these lines: https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java#L279-L280
And add the scale factor, like this:
region.setWidth(width * scale);
region.setHeight(height * scale);
EDIT:
We just committed this fix in the repo. You can update your runtime with this now.
Thanks! Problem fixed!
Good to hear! Thanks for telling us!