Skip to content

Commit

Permalink
Fixed _getBounds to call updateTransform on Sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
ekelokorpi committed May 22, 2018
1 parent 52c3e48 commit bc12044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine/renderer/sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ game.createClass('Sprite', 'Container', {
return this._worldBounds;
}

if (this._lastTransformUpdate < game.Timer._lastFrameTime) this.updateTransform();

var width = this.texture.width;
var height = this.texture.height;
var lt = transform || this._worldTransform;
Expand Down

0 comments on commit bc12044

Please sign in to comment.