From f5c9458e86fa0952022b1d633de87e116cb2268f Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 10 Jul 2018 09:37:52 +0200 Subject: [PATCH] Remove mechanism for exclude_materials The fields were gone from the data, but now we remove the mechanism too. Contributes to issue CURA-5460. --- cura/Machines/MaterialManager.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cura/Machines/MaterialManager.py b/cura/Machines/MaterialManager.py index 5d691fcef4..b81be5b5a8 100644 --- a/cura/Machines/MaterialManager.py +++ b/cura/Machines/MaterialManager.py @@ -287,19 +287,10 @@ class MaterialManager(QObject): # 1. variant-specific material # 2. machine-specific material # 3. generic material (for fdmprinter) - machine_exclude_materials = machine_definition.getMetaDataEntry("exclude_materials", []) - material_id_metadata_dict = dict() # type: Dict[str, MaterialNode] for node in nodes_to_check: if node is not None: - # Only exclude the materials that are explicitly specified in the "exclude_materials" field. - # Do not exclude other materials that are of the same type. for material_id, node in node.material_map.items(): - if material_id in machine_exclude_materials: - Logger.log("d", "Exclude material [%s] for machine [%s]", - material_id, machine_definition.getId()) - continue - if material_id not in material_id_metadata_dict: material_id_metadata_dict[material_id] = node