Commit 74b437e4 authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

BUG: VTK-python special types shouldn't use "None -> NULL" conversion.

The PyVTKSpecialObject support automatic conversion via the
constructor for the type, so doing an automatic conversion
from None to a NULL pointer of the type makes no sense.
Especially since special objects are generally not handled
via pointers like vtkObjects are.
parent f9dbbc16
......@@ -1248,12 +1248,6 @@ void *vtkPythonUtil::GetPointerFromSpecialObject(
// The type name, for diagnostics
const char *object_type = obj->ob_type->tp_name;
// convert Py_None to NULL every time
if (obj == Py_None)
{
return NULL;
}
// check to ensure it is a vtk special object
if (PyVTKSpecialObject_Check(obj))
{
......
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