• Bugs
  • Images flipping when parenting

  • Bearbeitet
Related Discussions
...

root bone scaled to [-1,0]

example hierarchy:

root (scaled)

  • Image
  • boneTestParent
  • - boneTest2

If I parent the image (which is parented to root), to boneTest2, (which is parented under boneTestParent, which is parented under to root) it's rotation will click to 180° from 0° for no reason.

Also when entering 90° on a bone with the world axis, it'll flip to 270° instead. This only occurs when the root bone is scaled negatively.

Cheers.

Thanks for letting us know and having details.

Out of curiosity, why is the root bone scaled negatively in Setup Mode?

Pharan schrieb

Thanks for letting us know and having details.

Out of curiosity, why is the root bone scaled negatively in Setup Mode?

I got the image assets facing the wrong direction, for some reason the exported spine files need to be facing the opposite direction.

There's plenty of workarounds, but this workflow works best for us usually. It's quite a strange bug. I think this has happened with more than just the root bone being flipped, but I can't remember and haven't tested for it.

From what I can tell, there's simply a lot of ambiguity involved when it comes to calculating and inputting world space rotation especially when there's negative scale involved, since it's actually derived not from a single value but total inherited scale, rotate and shear combined.

But I've opened an issue for fixing the issue with the skeleton facing the wrong way: How do you fix a skeleton facing the wrong direction? · #382 · EsotericSoftware/spine-editor
I'm not sure if it's already possible. I tried it with the Compensate tools and it doesn't seem to be sufficient, though I haven't really personally tackled this problem myself on the editor side before.

The other workaround for this is really have a negative flag on the runtime side, and make sure the system is able to recognize and consider everything the opposite direction when doing flipping and default direction-facing.