Skip to content

Commit

Permalink
fixed a regression with the isCurrentAnimation function
Browse files Browse the repository at this point in the history
somehow the `name` property of the current animation is being replaced
by `0` ! this needs a proper fix, but to do that, generally how data is
being stored in me.Sprite needs some rethinking/cleaning
  • Loading branch information
obiot committed Oct 24, 2016
1 parent bafb845 commit a0e084a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderable/sprite.js
Expand Up @@ -375,6 +375,8 @@
this.current = this.anim[name];
this.resetAnim = resetAnim || null;
this.setAnimationFrame(this.current.idx);
// XXX this should not be overwritten
this.current.name = name;
if (!_preserve_dt) {
this.dt = 0;
}
Expand Down

0 comments on commit a0e084a

Please sign in to comment.