Skip to content

Commit

Permalink
Merge pull request #1167 from starwed/debug-layer-fix
Browse files Browse the repository at this point in the history
Fix for debugging non-renderable components
  • Loading branch information
starwed authored Jan 15, 2018
2 parents 7027c53 + d37c70d commit e97ac00
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 e97ac00

Please sign in to comment.