Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-12-24 18:18:02 +0300
committerGhostkeeper <rubend@tutanota.com>2021-12-24 18:18:13 +0300
commitf97f7ca6af8e9e718722d8d308b28c26ea20c290 (patch)
tree7c8183999b786f07649adc9c3fa589c94433cfe7
parent4f9d1ae0a7ae256dd3ed26d4d4601a2e92fe8a57 (diff)
Port relative mode handling to Repetier flavour too
As requested in #9518.
-rw-r--r--plugins/PostProcessingPlugin/scripts/PauseAtHeight.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
index 7b1601aaf0..b31b8efa7c 100644
--- a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
+++ b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
@@ -479,7 +479,15 @@ class PauseAtHeight(Script):
else:
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
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"