mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
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:
parent
0831451371
commit
4fa38c26e8
1 changed files with 0 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue