From 1565327c81c261b3e1877a8fd143ea279fa3b292 Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Mon, 15 Jan 2018 14:21:41 -0500 Subject: [PATCH] Revert "Fix for debugging non-renderable components" --- src/debug/debug-layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/debug-layer.js b/src/debug/debug-layer.js index ce5affaa..4e541f9f 100644 --- a/src/debug/debug-layer.js +++ b/src/debug/debug-layer.js @@ -454,7 +454,7 @@ Crafty.DebugCanvas = { current = q[i]; // If necessary, update the view transform to match the current entities layer - if (current._drawLayer && lastLayer !== current._drawLayer){ + if (lastLayer !== current._drawlayer){ view = current._drawLayer._viewportRect(); ctx.setTransform(view._scale, 0, 0, view._scale, Math.round(-view._x*view._scale), Math.round(-view._y*view._scale)); lastLayer = current._drawLayer;