mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Continue if a printer has no active materials. This was causing a crash when loading the material combinations for a printer with two empty material slots.
CURA-10110
This commit is contained in:
parent
f03cf50461
commit
2b7eca29af
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ class CompatibleMachineModel(ListModel):
|
||||||
|
|
||||||
# initialize & add current active material:
|
# initialize & add current active material:
|
||||||
for extruder in printer.extruders:
|
for extruder in printer.extruders:
|
||||||
|
if not extruder.activeMaterial:
|
||||||
|
continue
|
||||||
materials = [_makeMaterial(
|
materials = [_makeMaterial(
|
||||||
extruder.activeMaterial.brand, extruder.activeMaterial.name, extruder.activeMaterial.color)]
|
extruder.activeMaterial.brand, extruder.activeMaterial.name, extruder.activeMaterial.color)]
|
||||||
extruder_configs[extruder.getPosition()] = {
|
extruder_configs[extruder.getPosition()] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue