Update plugins/PostProcessingPlugin/scripts/PauseAtHeight.py

Get extrusion mode from global container stack instead of first extruder

Co-authored-by: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
This commit is contained in:
Ewald Kleefstra 2021-06-07 17:45:51 +02:00 committed by Ghostkeeper
parent 76da7768e8
commit 94871a32e3
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -510,8 +510,7 @@ class PauseAtHeight(Script):
extrusion_mode_string = "absolute" extrusion_mode_string = "absolute"
extrusion_mode_numeric = 82 extrusion_mode_numeric = 82
extruders = list(Application.getInstance().getGlobalContainerStack().extruders.values()) relative_extrusion = Application.getInstance().getGlobalContainerStack().getProperty("relative_extrusion", "value")
relative_extrusion = extruders[0].getProperty("relative_extrusion", "value")
if relative_extrusion: if relative_extrusion:
extrusion_mode_string = "relative" extrusion_mode_string = "relative"
extrusion_mode_numeric = 83 extrusion_mode_numeric = 83