Skip to content

Commit

Permalink
Merge pull request #1169 from craftyjs/revert-1167-debug-layer-fix
Browse files Browse the repository at this point in the history
Revert "Fix for debugging non-renderable components"
  • Loading branch information
starwed authored Jan 15, 2018
2 parents e97ac00 + 1565327 commit 37d542b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/debug-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37d542b

Please sign in to comment.