From 27c03c4cc820775bc0e73b2e03642f366f423bb3 Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Sat, 8 Dec 2018 15:18:31 -0500 Subject: [PATCH] Origin change should update map/rendering --- src/spatial/2d.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spatial/2d.js b/src/spatial/2d.js index 2961faa3..658a65bd 100644 --- a/src/spatial/2d.js +++ b/src/spatial/2d.js @@ -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;