fixes for optional skirt_brim_extruder_nr

This commit is contained in:
Tim Kuipers 2022-02-14 16:30:11 +01:00
parent 2698cd76c5
commit 33e3a45b5c
2 changed files with 8 additions and 8 deletions

View file

@ -298,7 +298,7 @@ class ExtruderManager(QObject):
# Starts with the adhesion extruder.
adhesion_type = global_stack.getProperty("adhesion_type", "value")
if adhesion_type in {"skirt", "brim"}:
return global_stack.getProperty("skirt_brim_extruder_nr", "value")
return max(0, int(global_stack.getProperty("skirt_brim_extruder_nr", "value"))) # optional skirt/brim extruder defaults to zero
if adhesion_type == "raft":
return global_stack.getProperty("raft_base_extruder_nr", "value")