mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Merge pull request #1041 from Dumtard/dev
AnimationManager does not update currentFrame on play until second frame
This commit is contained in:
commit
1491d0ba0f
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ Phaser.AnimationManager.prototype = {
|
|||
|
||||
this.currentAnim = this._anims[name];
|
||||
this.currentAnim.paused = false;
|
||||
this.currentFrame = this.currentAnim.currentFrame;
|
||||
return this.currentAnim.play(frameRate, loop, killOnComplete);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue