Skip to content

Commit

Permalink
馃攰 gcodeviewer: Increase logging
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed May 7, 2019
1 parent 904e7d2 commit 22d7392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/octoprint/static/gcodeviewer/js/renderer.js
Expand Up @@ -86,6 +86,10 @@ GCODE.renderer = (function(){
}

var reRender = function(){
if (!model) return;

log.debug("Rerendering layer " + layerNumStore + " of " + model.length + " with " + GCODE.renderer.getLayerNumSegments(layerNumStore) + " segments");

notifyIfViewportChanged();

var p1 = ctx.transformedPoint(0,0);
Expand Down

0 comments on commit 22d7392

Please sign in to comment.