mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Reschedule update upon incomplete data in MaterialManager
CURA-5056
This commit is contained in:
parent
a704f59034
commit
29792bbdd8
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,7 @@ class MaterialManager(QObject):
|
|||
Logger.log("e", "Missing root material node for [%s]. Probably caused by update using incomplete data."
|
||||
" Check all related signals for further debugging.",
|
||||
material_group.name)
|
||||
# Do nothing here, we wait for a next signal to trigger an update.
|
||||
self._update_timer.start()
|
||||
return
|
||||
guid = material_group.root_material_node.metadata["GUID"]
|
||||
self._guid_material_groups_map[guid].append(material_group)
|
||||
|
@ -217,6 +217,7 @@ class MaterialManager(QObject):
|
|||
self.materialsUpdated.emit()
|
||||
|
||||
def _updateMaps(self):
|
||||
Logger.log("i", "Updating material lookup data ...")
|
||||
self.initialize()
|
||||
|
||||
def _onContainerMetadataChanged(self, container):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue