Fixed incorrect argument checking.
This commit is contained in:
@@ -160,7 +160,7 @@ PyObject * UnaryFunction0DMaterial___call__( BPy_UnaryFunction0DMaterial *self,
|
||||
{
|
||||
PyObject *obj;
|
||||
|
||||
if( !PyArg_ParseTuple(args, "O", &obj) && BPy_Interface0DIterator_Check(obj) ) {
|
||||
if(!PyArg_ParseTuple(args, "O!", &Interface0DIterator_Type, &obj)) {
|
||||
cout << "ERROR: UnaryFunction0DMaterial___call__ " << endl;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user