mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Manually revert part of PR.
It shouldn't really be nescesary, but you _can_ put any gcode flavour in relative or absolute, so we should also deal with that in the pause-at-height script.
This commit is contained in:
parent
b1138e12d9
commit
997b6f830d
1 changed files with 9 additions and 1 deletions
|
@ -514,7 +514,15 @@ class PauseAtHeight(Script):
|
||||||
else:
|
else:
|
||||||
Logger.log("w", "No previous feedrate found in gcode, feedrate for next layer(s) might be incorrect")
|
Logger.log("w", "No previous feedrate found in gcode, feedrate for next layer(s) might be incorrect")
|
||||||
|
|
||||||
prepend_gcode += self.putValue(M = 82) + "\n"
|
extrusion_mode_string = "absolute"
|
||||||
|
extrusion_mode_numeric = 82
|
||||||
|
|
||||||
|
relative_extrusion = Application.getInstance().getGlobalContainerStack().getProperty("relative_extrusion", "value")
|
||||||
|
if relative_extrusion:
|
||||||
|
extrusion_mode_string = "relative"
|
||||||
|
extrusion_mode_numeric = 83
|
||||||
|
|
||||||
|
prepend_gcode += self.putValue(M = extrusion_mode_numeric) + " ; switch back to " + extrusion_mode_string + " E values\n"
|
||||||
|
|
||||||
# reset extrude value to pre pause value
|
# reset extrude value to pre pause value
|
||||||
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"
|
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue