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