Browse Source

Fix getting GUID from metadata

Contributes to issue CURA-6600.
Ghostkeeper 5 years ago
parent
commit
71aed6858c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Machines/MaterialNode.py

+ 1 - 1
cura/Machines/MaterialNode.py

@@ -76,7 +76,7 @@ class MaterialNode(ContainerNode):
                     if container.getMetaDataEntry("material") not in allowed_material_ids:
                         return  # Doesn't match the material type.
                 else:
-                    my_material_guid = my_metadata["guid"]
+                    my_material_guid = my_metadata.get("GUID")
                     allowed_material_ids = {metadata["id"] for metadata in container_registry.findInstanceContainersMetadata(type = "material", guid = my_material_guid)}
                     if container.getMetaDataEntry("material") not in allowed_material_ids:
                         return  # Doesn't match the material GUID.