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.
This commit is contained in:
Ghostkeeper 2017-11-21 11:46:14 +01:00
parent 0831451371
commit 4fa38c26e8
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -794,8 +794,6 @@ class XmlMaterialProfile(InstanceContainer):
if len(found_materials) == 0: if len(found_materials) == 0:
result_metadata.append(new_hotend_material_metadata) result_metadata.append(new_hotend_material_metadata)
for metadata in result_metadata:
result_metadata.append(metadata)
return result_metadata return result_metadata
## Override of getIdsFromFile because the XML files contain multiple IDs. ## Override of getIdsFromFile because the XML files contain multiple IDs.