From 6b6d76365771140a864f393445abbf6918c8c9cc Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 23 Aug 2016 22:58:37 +0200 Subject: [PATCH] Make globally incompatible materials not show up in menus CURA-2138 --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 36bebc9021..65e8f0f68c 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -377,6 +377,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer): new_hotend_material._dirty = False UM.Settings.ContainerRegistry.getInstance().addContainer(new_hotend_material) + if not global_compatibility: + super().setMetaDataEntry("type", "incompatible_material") + def _addSettingElement(self, builder, instance): try: key = UM.Dictionary.findKey(self.__material_property_setting_map, instance.definition.key)