removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's

This commit is contained in:
Campbell Barton
2007-03-15 01:09:14 +00:00
parent a567e43628
commit ee5dc4d0bf
66 changed files with 54 additions and 319 deletions

View File

@@ -350,11 +350,6 @@ PyObject *Camera_CreatePyObject( Camera * cam )
return ( PyObject * ) pycam;
}
int Camera_CheckPyObject( PyObject * pyobj )
{
return ( pyobj->ob_type == &Camera_Type );
}
Camera *Camera_FromPyObject( PyObject * pyobj )
{
return ( ( BPy_Camera * ) pyobj )->camera;