removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's
This commit is contained in:
@@ -1709,7 +1709,7 @@ static PyObject *Method_Image( PyObject * self, PyObject * args )
|
||||
"expected a Blender.Image and 2 floats, and " \
|
||||
"optionally 2 floats and 4 ints as arguments" );
|
||||
/* check that the first PyObject is actually a Blender.Image */
|
||||
if( !Image_CheckPyObject( pyObjImage ) )
|
||||
if( !BPy_Image_Check( pyObjImage ) )
|
||||
return EXPP_ReturnPyObjError( PyExc_TypeError,
|
||||
"expected a Blender.Image and 2 floats, and " \
|
||||
"optionally 2 floats and 4 ints as arguments" );
|
||||
|
||||
Reference in New Issue
Block a user