diff --git a/src/octoprint/static/gcodeviewer/js/renderer.js b/src/octoprint/static/gcodeviewer/js/renderer.js index 87455cffb..8dd44d1ce 100644 --- a/src/octoprint/static/gcodeviewer/js/renderer.js +++ b/src/octoprint/static/gcodeviewer/js/renderer.js @@ -356,6 +356,11 @@ GCODE.renderer = (function(){ ctx.fill(); ctx.stroke(); + // draw origin + ctx.beginPath(); + ctx.arc(0, 0, 2, 0, Math.PI * 2, true); + ctx.stroke(); + ctx.strokeStyle = renderOptions["colorGrid"]; ctx.lineWidth = lineWidthFactor; @@ -409,6 +414,11 @@ GCODE.renderer = (function(){ ctx.fill(); ctx.stroke(); + // draw origin + ctx.beginPath(); + ctx.arc(0, 0, 2, 0, Math.PI * 2, true); + ctx.stroke(); + ctx.strokeStyle = renderOptions["colorGrid"]; ctx.lineWidth = lineWidthFactor; diff --git a/src/octoprint/static/js/app/viewmodels/gcode.js b/src/octoprint/static/js/app/viewmodels/gcode.js index a553b08f7..2e2173ce9 100644 --- a/src/octoprint/static/js/app/viewmodels/gcode.js +++ b/src/octoprint/static/js/app/viewmodels/gcode.js @@ -160,14 +160,6 @@ $(function() { }); } - var axesConfiguration = self._retrieveAxesConfiguration(currentProfileData); - if (axesConfiguration) { - GCODE.ui.updateOptions({ - renderer: { - invertAxes: axesConfiguration - } - }); - } }; // subscribe to relevant printer settings...