mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Handle "" and None as hot-end and material IDs
Contributes to CL-1282
This commit is contained in:
parent
3489a5c64e
commit
6392ab8d05
1 changed files with 3 additions and 2 deletions
|
@ -1390,8 +1390,9 @@ class MachineManager(QObject):
|
||||||
need_to_show_message = False
|
need_to_show_message = False
|
||||||
|
|
||||||
for extruder_configuration in configuration.extruderConfigurations:
|
for extruder_configuration in configuration.extruderConfigurations:
|
||||||
extruder_has_hotend = extruder_configuration.hotendID != ""
|
# We support "" or None, since the cloud uses None instead of empty strings
|
||||||
extruder_has_material = extruder_configuration.material.guid != ""
|
extruder_has_hotend = extruder_configuration.hotendID and extruder_configuration.hotendID != ""
|
||||||
|
extruder_has_material = extruder_configuration.material.guid and extruder_configuration.material.guid != ""
|
||||||
|
|
||||||
# If the machine doesn't have a hotend or material, disable this extruder
|
# If the machine doesn't have a hotend or material, disable this extruder
|
||||||
if not extruder_has_hotend or not extruder_has_material:
|
if not extruder_has_hotend or not extruder_has_material:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue