From 2d7569f4b57e83b240e21f4164dff4fb7d3540ef Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Sat, 8 Dec 2018 15:16:09 -0500 Subject: [PATCH] Invalidate the entity when the origin changes --- src/spatial/2d.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spatial/2d.js b/src/spatial/2d.js index d2940f84..2961faa3 100644 --- a/src/spatial/2d.js +++ b/src/spatial/2d.js @@ -925,6 +925,7 @@ Crafty.c("2D", { } this.trigger("OriginChanged"); + this.trigger("Invalidate"); return this; },