mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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:
|
||||
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
|
||||
"_".join(merged_name_parts),
|
||||
]
|
||||
|
||||
}
|
||||
id_list = list(id_list)
|
||||
return id_list
|
||||
|
||||
## Gets a mapping from product names in the XML files to their definition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue