mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
Fix exporting materials for machines other than those in the product_id_map
CURA-2583
This commit is contained in:
parent
fea0dfdfa1
commit
472ba7ed26
@ -189,7 +189,8 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
||||
try:
|
||||
product = UM.Dictionary.findKey(self.__product_id_map, definition_id)
|
||||
except ValueError:
|
||||
continue
|
||||
# An unknown product id; export it anyway
|
||||
product = definition_id
|
||||
|
||||
builder.start("machine")
|
||||
builder.start("machine_identifier", { "manufacturer": definition.getMetaDataEntry("manufacturer", ""), "product": product})
|
||||
|
Loading…
x
Reference in New Issue
Block a user