The Spine 4.1 Plugin will now call preUpdate automatically when the play method is called. This forces the new animation state to update and apply itself to the skeleton. This fixes an issue where Spine object would show the default frame in the Spine atlas for a single update before the animation started. Fix #5443

This commit is contained in:
Richard Davey 2024-02-01 12:23:08 +00:00
parent 3306fd19a0
commit 76831e88ec

View file

@ -995,6 +995,8 @@ var SpineGameObject = new Class({
{
this.setAnimation(0, animationName, loop, ignoreIfPlaying);
this.preUpdate(0, 16.6);
return this;
},