mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
PossibleDefinitionIds from name only returns distinct names
It would sometimes return 3x the same id.
This commit is contained in:
parent
fdfeeb5496
commit
08394c99d3
1 changed files with 3 additions and 3 deletions
|
@ -916,11 +916,11 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
else:
|
else:
|
||||||
merged_name_parts.append(part)
|
merged_name_parts.append(part)
|
||||||
|
|
||||||
id_list = [name.lower().replace(" ", ""), # simply removing all spaces
|
id_list = {name.lower().replace(" ", ""), # simply removing all spaces
|
||||||
name.lower().replace(" ", "_"), # simply replacing all spaces with underscores
|
name.lower().replace(" ", "_"), # simply replacing all spaces with underscores
|
||||||
"_".join(merged_name_parts),
|
"_".join(merged_name_parts),
|
||||||
]
|
}
|
||||||
|
id_list = list(id_list)
|
||||||
return id_list
|
return id_list
|
||||||
|
|
||||||
## Gets a mapping from product names in the XML files to their definition
|
## Gets a mapping from product names in the XML files to their definition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue