diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-10-26 19:51:53 +0300 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-10-26 19:51:53 +0300 |
commit | 6b1b9c1890633fb45c7e1f826d2fb2cb491f68aa (patch) | |
tree | 6517462093e2a27570c8b661af49461cf7b380ad /source/blender/python/api2_2x/World.c | |
parent | e63a938c456f9edcd3d79857649cdd1a93364746 (diff) |
iaccess to the IPOs of a Camera, a World, or of a Material
Diffstat (limited to 'source/blender/python/api2_2x/World.c')
-rw-r--r-- | source/blender/python/api2_2x/World.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index aaa1c12df9d..75ff9dcb53d 100644 --- a/source/blender/python/api2_2x/World.c +++ b/source/blender/python/api2_2x/World.c @@ -226,14 +226,15 @@ PyObject *World_Init (void) /* Python BPy_World methods: */ /*****************************************************************************/ -/** - * \defgroup World_Methods World Method Functions - * - * These are the World PyObject method functions. They are used to get and - * set values for the World Data member variables. - */ -/*@{*/ + +static PyObject *World_getIpo(BPy_World *self) +{ +PyObject *Ipo_CreatePyObject (Ipo *ipo); + struct Ipo*ipo = self->world->ipo; + if (!ipo) return EXPP_ReturnPyObjError(PyExc_RuntimeError,"World has no Ipo"); + return Ipo_CreatePyObject (ipo); +} /** * \brief World PyMethod getName |