Skip to content

Commit

Permalink
Invalidate the entity when the origin changes
Browse files Browse the repository at this point in the history
  • Loading branch information
starwed committed Dec 8, 2018
1 parent 5c8796c commit 2d7569f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spatial/2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ Crafty.c("2D", {
}

this.trigger("OriginChanged");
this.trigger("Invalidate");
return this;
},

Expand Down

0 comments on commit 2d7569f

Please sign in to comment.