From 7cd344978149997d91d91c1f20788e42fe3de91e Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 13 Dec 2017 11:26:16 +0100 Subject: [PATCH] Fix material loading --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 08530f96e2..4de49817bc 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -632,9 +632,9 @@ class XmlMaterialProfile(InstanceContainer): if is_new_material: containers_to_add.append(new_hotend_material) - # there is only one ID for a machine. Once we have reached here, it means we have already found - # a workable ID for that machine, so there is no need to continue - break + # there is only one ID for a machine. Once we have reached here, it means we have already found + # a workable ID for that machine, so there is no need to continue + break for container_to_add in containers_to_add: ContainerRegistry.getInstance().addContainer(container_to_add) @@ -800,9 +800,9 @@ class XmlMaterialProfile(InstanceContainer): if len(found_materials) == 0: result_metadata.append(new_hotend_material_metadata) - # there is only one ID for a machine. Once we have reached here, it means we have already found - # a workable ID for that machine, so there is no need to continue - break + # there is only one ID for a machine. Once we have reached here, it means we have already found + # a workable ID for that machine, so there is no need to continue + break return result_metadata