From 4fa38c26e8b4e586733529e905bd7cce49365eb8 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 21 Nov 2017 11:46:14 +0100 Subject: [PATCH] Don't add any extra metadata to the end of the list you're iterating over Stupid mistake. This causes infinite loops. Contributes to issue CURA-4243. --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 583febea99..7a2ad3fe51 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -794,8 +794,6 @@ class XmlMaterialProfile(InstanceContainer): if len(found_materials) == 0: result_metadata.append(new_hotend_material_metadata) - for metadata in result_metadata: - result_metadata.append(metadata) return result_metadata ## Override of getIdsFromFile because the XML files contain multiple IDs.