=== Python API ===
Fixes for the bug introduced by my other commit the other day. Blender.Draw.Create now does proper error checking.
This commit is contained in:
@@ -785,6 +785,10 @@ static PyObject *Method_Create( PyObject * self, PyObject * args )
|
||||
but = NULL;
|
||||
PyErr_SetString( PyExc_TypeError, "expected string, float, int or 3-float tuple argument" );
|
||||
}
|
||||
|
||||
if (but != NULL) {
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
return (PyObject*) but;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user