Skip to content

Commit

Permalink
Fix for debugging non-renderable components
Browse files Browse the repository at this point in the history
  • Loading branch information
starwed committed Jan 15, 2018
1 parent 7027c53 commit d37c70d
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 (lastLayer !== current._drawlayer){
if (current._drawLayer && 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 d37c70d

Please sign in to comment.