Only load metadata when finding hotends belonging to material

We only need to have the hotend metadata.

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-11-23 15:31:22 +01:00
parent def7b6994d
commit 3ee2e0488f
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -781,7 +781,7 @@ class XmlMaterialProfile(InstanceContainer):
# Same as machine compatibility, keep the derived material containers consistent with the parent
# material
found_materials = ContainerRegistry.getInstance().findInstanceContainers(id = new_hotend_id)
found_materials = ContainerRegistry.getInstance().findInstanceContainersMetadata(id = new_hotend_id)
if found_materials:
new_hotend_material_metadata = found_materials[0]
else: