diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-11 07:05:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-11 07:05:45 +0300 |
commit | 1135434ed18b4d89505ce0ce9673bf801e4b48e7 (patch) | |
tree | e28fbb3300ca1e5013ea2719bfae0c6173d15176 /source/blender/python/api2_2x/Camera.c | |
parent | 36eba6eb6c733bae0283758e7689595af023c401 (diff) |
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..
Diffstat (limited to 'source/blender/python/api2_2x/Camera.c')
-rw-r--r-- | source/blender/python/api2_2x/Camera.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c index 0bd73e11500..9f5b48000e9 100644 --- a/source/blender/python/api2_2x/Camera.c +++ b/source/blender/python/api2_2x/Camera.c @@ -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 ); |