moved python functions that deal with blender libdata into gen_library.c from gen_utils and BPY_interface

small cleanup, removed unused functions and explicetly cast pointers..
This commit is contained in:
2007-03-11 04:05:45 +00:00
parent 36eba6eb6c
commit 1135434ed1
32 changed files with 449 additions and 382 deletions

View File

@@ -41,6 +41,7 @@
#include "BIF_space.h"
#include "mydevice.h"
#include "gen_utils.h"
#include "gen_library.h"
#include "Ipo.h"
@@ -369,16 +370,6 @@ Camera *Camera_FromPyObject( PyObject * pyobj )
/* Python BPy_Camera methods: */
/*****************************************************************************/
static PyObject *Camera_oldgetIpo( BPy_Camera * self )
{
struct Ipo *ipo = self->camera->ipo;
if( !ipo )
Py_RETURN_NONE;
return Ipo_CreatePyObject( ipo );
}
static PyObject *Camera_oldgetType( BPy_Camera * self )
{
PyObject *attr = PyInt_FromLong( self->camera->type );