mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 13:15:57 +08:00
Fix dirty flag of incompatible_materials
This commit is contained in:
parent
40ae75f54f
commit
0828d4f1ca
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user