Browse Source

Fix serialising materials without nozzle profile again

Oops. This is simpler anyway.

Contributes to issue CURA-6600.
Ghostkeeper 5 years ago
parent
commit
cb344f9dec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/XmlMaterialProfile/XmlMaterialProfile.py

+ 1 - 1
plugins/XmlMaterialProfile/XmlMaterialProfile.py

@@ -245,7 +245,7 @@ class XmlMaterialProfile(InstanceContainer):
                 machine_container_map[definition_id] = container
                 continue
 
-            variant_dict = {"variant_type": container.getMetaDataEntry("hardware_type", str(VariantType.NOZZLE)),
+            variant_dict = {"variant_type": container.getMetaDataEntry("hardware_type", "nozzle"),
                             "material_container": container}
             machine_variant_map[definition_id][variant_name] = variant_dict