• Bugs
  • DrawOrder is not updated on animation start

Related Discussions
...

This is regarding the official javascript-runtime.

1: Open the spine js runtime demo: http://esotericsoftware.com/files/demos ... z/example/

2: While the head is behind the body, click the window in order to change the animation.

3: The head is now behind the body.

In Spine, the draw order is reset on the start of an animation, but the js runtime does not reflect this behavior.
Also, when calling setToSetupPose on a skeleton, the draw order is not reverted to the original draw order.

Thanks for the fast reply and fix 🙂
Animations only changing its own keyframes make sense, but what about resetting the draw order at the start of an animation?

Fx we have an animation that changes the draw order in the middle of the animation and only there. If the animation loops in Spine it will revert to the original draw order in frame 0, but this is not reflected in the runtime.

Same as any other keyframe, you would need to key draw order on frame zero.