removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's
This commit is contained in:
@@ -781,16 +781,6 @@ PyObject *Image_CreatePyObject( Image * image )
|
||||
return ( PyObject * ) py_img;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: Image_CheckPyObject */
|
||||
/* Description: This function returns true when the given PyObject is of the */
|
||||
/* type Image. Otherwise it will return false. */
|
||||
/*****************************************************************************/
|
||||
int Image_CheckPyObject( PyObject * pyobj )
|
||||
{
|
||||
return ( pyobj->ob_type == &Image_Type );
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Function: Image_FromPyObject */
|
||||
/* Description: Returns the Blender Image associated with this object */
|
||||
|
||||
Reference in New Issue
Block a user