Workaround for DAG invalidation - remove all expressions before deleting an object.

This commit is contained in:
Markus Lampert
2017-10-10 17:12:05 -07:00
parent d2b1768e18
commit 46d120071e
4 changed files with 26 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ import Part
import Path
import PathScripts
import PathScripts.PathLog as PathLog
import PathScripts.PathUtil as PathUtil
from FreeCAD import Units
from PySide import QtCore
@@ -191,6 +192,10 @@ class ViewProvider:
vobj.setEditorMode('BoundingBox', mode)
vobj.setEditorMode('Selectable', mode)
def onDelete(self, vobj, args=None):
PathUtil.clearExpressionEngine(vobj.Object)
return True
def updateData(self, vobj, prop):
# this is executed when a property of the APP OBJECT changes
pass