Fix dirty flag of incompatible_materials

This commit is contained in:
fieldOfView 2016-09-08 21:11:08 +02:00
parent 40ae75f54f
commit 0828d4f1ca

View file

@ -507,7 +507,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
# 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.
dirty = self.isDirty()
super().setMetaDataEntry("type", "incompatible_material")
super().setDirty(dirty) # reset dirty flag after setMetaDataEntry
def _addSettingElement(self, builder, instance):
try: