Merge branch 'CURA-5548_fix_sync_button_for_downloaded_materials'

This commit is contained in:
Ghostkeeper 2018-07-09 14:39:04 +02:00
commit 588991660e
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -378,9 +378,8 @@ class MaterialManager(QObject):
# Look at the guid to material dictionary # Look at the guid to material dictionary
root_material_id = None root_material_id = None
for material_group in self._guid_material_groups_map[material_guid]: for material_group in self._guid_material_groups_map[material_guid]:
if material_group.is_read_only: root_material_id = material_group.root_material_node.metadata["id"]
root_material_id = material_group.root_material_node.metadata["id"] break
break
if not root_material_id: if not root_material_id:
Logger.log("i", "Cannot find materials with guid [%s] ", material_guid) Logger.log("i", "Cannot find materials with guid [%s] ", material_guid)