mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:15:52 +08: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
@ -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…
x
Reference in New Issue
Block a user