mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Fix linked materials not being found due to key casing
CURA-6917
This commit is contained in:
parent
8389c2c17a
commit
0b450ef9f4
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ class ContainerManager(QObject):
|
|||
# \return A list of names of materials with the same GUID.
|
||||
@pyqtSlot("QVariant", bool, result = "QStringList")
|
||||
def getLinkedMaterials(self, material_node: "MaterialNode", exclude_self: bool = False) -> List[str]:
|
||||
same_guid = ContainerRegistry.getInstance().findInstanceContainersMetadata(guid = material_node.guid)
|
||||
same_guid = ContainerRegistry.getInstance().findInstanceContainersMetadata(GUID = material_node.guid)
|
||||
if exclude_self:
|
||||
return [metadata["name"] for metadata in same_guid if metadata["base_file"] != material_node.base_file]
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue