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 GitHub
parent 15b30de90b
commit 755d844f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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