mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix serialising materials with Ultimaker S5 in it
Contributes to issue CURA-5787.
This commit is contained in:
parent
d6f116b156
commit
cc94441b54
2 changed files with 3 additions and 0 deletions
|
@ -1167,6 +1167,8 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
with open(product_to_id_file, encoding = "utf-8") as f:
|
||||
product_to_id_map = json.load(f)
|
||||
product_to_id_map = {key: [value] for key, value in product_to_id_map.items()}
|
||||
#This also loads "Ultimaker S5" -> "ultimaker_s5" even though that is not strictly necessary with the default to change spaces into underscores.
|
||||
#However it is not always loaded with that default; this mapping is also used in serialize() without that default.
|
||||
return product_to_id_map
|
||||
|
||||
## Parse the value of the "material compatible" property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue