mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 11:43:13 +08: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
@ -54,6 +54,8 @@ class CompatibleMachineModel(ListModel):
|
||||
|
||||
# initialize & add current active material:
|
||||
for extruder in printer.extruders:
|
||||
if not extruder.activeMaterial:
|
||||
continue
|
||||
materials = [_makeMaterial(
|
||||
extruder.activeMaterial.brand, extruder.activeMaterial.name, extruder.activeMaterial.color)]
|
||||
extruder_configs[extruder.getPosition()] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user