From fbefe42db39cc72a2e129fa14162f806219a696a Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 15 Sep 2023 13:13:23 +0200 Subject: [PATCH] Get abstract color property from metadata not from properties Otherwise all the abstract profiles are visible CURA-10953 --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 8c1ad17250..490d704d19 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -911,7 +911,7 @@ class XmlMaterialProfile(InstanceContainer): base_metadata["definition"] = "fdmprinter" # Certain materials are loaded but should not be visible / selectable to the user. - base_metadata["visible"] = not property_values.get("abstract_color", False) + base_metadata["visible"] = not base_metadata.get("abstract_color", False) compatible_entries = data.iterfind("./um:settings/um:setting[@key='hardware compatible']", cls.__namespaces) try: