From 3ee2e0488f95e3311d9c6354c29dff954bb401bc Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 23 Nov 2017 15:31:22 +0100 Subject: [PATCH] Only load metadata when finding hotends belonging to material We only need to have the hotend metadata. Contributes to issue CURA-4243. --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 5dfa130145..a6825f33a6 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -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: