Fix getting GUID from metadata

I keep making this mistake. A donkey may not hit its leg twice on the same stone, but I ain't no ass.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-19 16:24:00 +02:00
parent 443495973f
commit 10dbf3f735
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -24,7 +24,7 @@ class MaterialNode(ContainerNode):
my_metadata = container_registry.findContainersMetadata(id = container_id)[0]
self.base_file = my_metadata["base_file"]
self.material_type = my_metadata["material"]
self.guid = my_metadata["guid"]
self.guid = my_metadata["GUID"]
self._loadAll()
container_registry.containerRemoved.connect(self._onRemoved)
container_registry.containerMetaDataChanged(self._onMetadataChanged)
@ -81,7 +81,7 @@ class MaterialNode(ContainerNode):
old_material_type = self.material_type
self.material_type = new_metadata["material"]
old_guid = self.guid
self.guid = new_metadata["guid"]
self.guid = new_metadata["GUID"]
if self.base_file != old_base_file or self.material_type != old_material_type or self.guid != old_guid: # List of quality profiles could've changed.
self.qualities = {}
self._loadAll() # Re-load the quality profiles for this node.