Fixed incorrect argument checking.

This commit is contained in:
2009-03-14 13:27:41 +00:00
parent c49bdd1a14
commit 6ba34d18b5
38 changed files with 74 additions and 75 deletions

View File

@@ -165,8 +165,7 @@ PyObject * UnaryFunction0DVec2f_getName( BPy_UnaryFunction0DVec2f *self )
PyObject * UnaryFunction0DVec2f___call__( BPy_UnaryFunction0DVec2f *self, PyObject *args)
{
PyObject *obj;
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
if(!PyArg_ParseTuple(args, "O!", &Interface0DIterator_Type, &obj)) {
cout << "ERROR: UnaryFunction0DVec2f___call__ " << endl;
return NULL;
}