mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue