Commit 851175de authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot

Merge topic 'python-delete-command'

f06e3ccf Don't pass subject for Python DeleteEvent
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2131
parents 254f1e37 f06e3ccf
......@@ -104,7 +104,8 @@ void vtkPythonCommand::Execute(vtkObject *ptr, unsigned long eventtype,
PyObject * obj2 = NULL;
if (ptr && ptr->GetReferenceCount() > 0)
if (eventtype != vtkCommand::DeleteEvent &&
ptr && ptr->GetReferenceCount() > 0)
{
obj2 = vtkPythonUtil::GetObjectFromPointer(ptr);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment