🐛 gcode viewer: do not invert axes
The axis inversion is only relevant to the control panel (depends on how the print head is positioned), NOT the rendition of the GCODE. Fixes #3137
This commit is contained in:
1 parent
b3173386ae
commit
904e7d2ecd
2 files changed
+10
-8
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -160,14 +160,6 @@ $(function() {
|
||||
});
|
||||
}
|
||||
|
||||
var axesConfiguration = self._retrieveAxesConfiguration(currentProfileData);
|
||||
if (axesConfiguration) {
|
||||
GCODE.ui.updateOptions({
|
||||
renderer: {
|
||||
invertAxes: axesConfiguration
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// subscribe to relevant printer settings...
|
||||
|
||||
Reference in new issue
Block a user