Workaround for DAG invalidation - remove all expressions before deleting an object.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user