Fix exporting materials for machines other than those in the product_id_map

CURA-2583
This commit is contained in:
fieldOfView 2016-10-10 14:34:53 +02:00
parent fea0dfdfa1
commit 472ba7ed26

View file

@ -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})