From d3a0c0fa77483d9ecd3702a9779f8d835d99bcc0 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 24 Aug 2016 09:09:09 +0200 Subject: [PATCH] Add documentation 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 65e8f0f68c..e832d6ccfb 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -378,6 +378,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer): UM.Settings.ContainerRegistry.getInstance().addContainer(new_hotend_material) if not global_compatibility: + # Change the type of this container so it is not shown as an option in menus. + # This uses InstanceContainer.setMetaDataEntry because otherwise all containers that + # share this basefile are also updated. super().setMetaDataEntry("type", "incompatible_material") def _addSettingElement(self, builder, instance):