mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Fix syncing empty material with cloud
For some reason the cloud gives a 0000 guid when the material is empty.
This commit is contained in:
parent
7d75060342
commit
930d92869a
1 changed files with 2 additions and 2 deletions
|
@ -1377,8 +1377,8 @@ class MachineManager(QObject):
|
|||
|
||||
for extruder_configuration in configuration.extruderConfigurations:
|
||||
# We support "" or None, since the cloud uses None instead of empty strings
|
||||
extruder_has_hotend = extruder_configuration.hotendID and extruder_configuration.hotendID != ""
|
||||
extruder_has_material = extruder_configuration.material.guid and extruder_configuration.material.guid != ""
|
||||
extruder_has_hotend = extruder_configuration.hotendID not in ["", None]
|
||||
extruder_has_material = extruder_configuration.material.guid not in [None, "", "00000000-0000-0000-0000-000000000000"]
|
||||
|
||||
# If the machine doesn't have a hotend or material, disable this extruder
|
||||
if not extruder_has_hotend or not extruder_has_material:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue