mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08: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
@ -1377,8 +1377,8 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
for extruder_configuration in configuration.extruderConfigurations:
|
for extruder_configuration in configuration.extruderConfigurations:
|
||||||
# We support "" or None, since the cloud uses None instead of empty strings
|
# 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_hotend = extruder_configuration.hotendID not in ["", None]
|
||||||
extruder_has_material = extruder_configuration.material.guid and extruder_configuration.material.guid != ""
|
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 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…
x
Reference in New Issue
Block a user