Browse Source

CURA-5570 Remove a check that caused empty list of profiles.

Diego Prado Gesto 6 years ago
parent
commit
98a0bb5002
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cura/Machines/QualityManager.py

+ 2 - 1
cura/Machines/QualityManager.py

@@ -238,6 +238,7 @@ class QualityManager(QObject):
             # The root material IDs in this list are in prioritized order.
             root_material_id_list = []
             has_material = False  # flag indicating whether this extruder has a material assigned
+            root_material_id = None
             if extruder.material.getId() != "empty_material":
                 has_material = True
                 root_material_id = extruder.material.getMetaDataEntry("base_file")
@@ -248,7 +249,7 @@ class QualityManager(QObject):
                 # Also try to get the fallback material
                 material_type = extruder.material.getMetaDataEntry("material")
                 fallback_root_material_id = self._material_manager.getFallbackMaterialIdByMaterialType(material_type)
-                if fallback_root_material_id and root_material_id not in root_material_id_list:
+                if fallback_root_material_id:
                     root_material_id_list.append(fallback_root_material_id)
 
             # Here we construct a list of nodes we want to look for qualities with the highest priority first.