Skip to content

Commit

Permalink
Origin change should update map/rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
starwed committed Dec 8, 2018
1 parent 2d7569f commit 27c03c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spatial/2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,9 @@ Crafty.c("2D", {
this._calculateMBR();
}

// Update position in spatial map
this._entry.update(this._cbr || this._mbr || this);

this.trigger("OriginChanged");
this.trigger("Invalidate");
return this;
Expand Down

0 comments on commit 27c03c4

Please sign in to comment.