diff --git a/src/Mod/Arch/ArchMaterial.py b/src/Mod/Arch/ArchMaterial.py index 6248aaf0d9..a9d2d7e8de 100644 --- a/src/Mod/Arch/ArchMaterial.py +++ b/src/Mod/Arch/ArchMaterial.py @@ -388,6 +388,8 @@ class _ViewProviderArchMaterial: def unsetEdit(self,vobj,mode): FreeCADGui.Control.closeDialog() FreeCAD.ActiveDocument.recompute() + if hasattr(self,"taskd"): + del self.taskd return def __getstate__(self):