diff options
author | fieldOfView <aldo@fieldofview.com> | 2016-10-10 15:34:53 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2016-10-10 15:34:53 +0300 |
commit | 472ba7ed26a54ba7eff8f0a2964dcacc270bf4b4 (patch) | |
tree | b7ba0573e1026d715f6be80ba39780d5f088552c | |
parent | fea0dfdfa1b3e4b989d9295d49edd07b65949787 (diff) |
Fix exporting materials for machines other than those in the product_id_map
CURA-2583
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialProfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index bf3f34b667..baf986067a 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -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}) |