mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
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:
parent
76da7768e8
commit
94871a32e3
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue