mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
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:
parent
3306fd19a0
commit
76831e88ec
1 changed files with 2 additions and 0 deletions
|
@ -995,6 +995,8 @@ var SpineGameObject = new Class({
|
|||
{
|
||||
this.setAnimation(0, animationName, loop, ignoreIfPlaying);
|
||||
|
||||
this.preUpdate(0, 16.6);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue