Spine sprites don't update their bone positions for skeleton_bone_state_get until AFTER the sprite is drawn #2364
Labels
documentation
Improvements or additions to documentation are required by this issue
project
This issue has a sample project attached
Description
Previously, you could use skeleton_bone_state_get in the end step event and it would have updated bone data for what's going to draw that frame, since it would update between step and end step. Now, the bone data will never update until after the sprite is drawn. It won't even be updated for the animation update event, it's updated after the animation update event runs. This means the only way to have up to date bone data is to call draw_self() in a step event prior to using skeleton_bone_state_get.
This also means bone data will never update at all if the sprite isn't actually being drawn.
The animation update event still has the issue where it will run every single time the sprite is drawn instead of once at a specific time, so I'd like if it could go back to updating between step and end step, so I can run state machines and such without needing to call draw_self() in step.
Steps To Reproduce
Assign a spine sprite to an object, and add some code to move it in step. Call skeleton_bone_state_get in various events, and see that it doesn't update until after the sprite is drawn.
22439771-8446-45dd-9c12-496f17735ee2
The text was updated successfully, but these errors were encountered: