mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Remove code duplication in createAbstractMachine
This also caused a crash when an abstract machine with multiple extruders was selected CURA-8463
This commit is contained in:
parent
46532828a4
commit
506f2b9820
3 changed files with 18 additions and 33 deletions
|
@ -292,7 +292,6 @@ class GlobalStack(CuraContainerStack):
|
|||
for extruder_train in extruder_trains:
|
||||
extruder_position = extruder_train.getMetaDataEntry("position")
|
||||
extruder_check_position.add(extruder_position)
|
||||
|
||||
for check_position in range(machine_extruder_count):
|
||||
if str(check_position) not in extruder_check_position:
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue