diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-25 04:07:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-25 04:07:28 +0300 |
commit | 75147698e2b8765022097203b9bb1291a105f2d8 (patch) | |
tree | a74dc1f9874be70936a5faf73811c91e17ee99be /source/blender/python/api2_2x/World.c | |
parent | f791672e76f90b360920c0d644d1f15f87dbd0e4 (diff) |
Scene
* Moved to getsetattrs
* added scene.users (get)
* added scene.fakeUser (get/set)
* added scene.world (get/set)
* added scene.timeline (get)
* added scene.render (get)
* added scene.radiosity (get)
* added scene.objects.camera (get/set)
Group
* added properties
gen_utils
* made getScriptLinks work as documented, return an empty list rather then None.
header files, noted libdata after PyObject as a requirement.
Others,
* Deprecate prints for older functionality
EpyDocs still need updating.
Diffstat (limited to 'source/blender/python/api2_2x/World.c')
-rw-r--r-- | source/blender/python/api2_2x/World.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index 6400f3a716e..50d7c561d80 100644 --- a/source/blender/python/api2_2x/World.c +++ b/source/blender/python/api2_2x/World.c @@ -377,11 +377,12 @@ static PyObject *M_World_Get( PyObject * self, PyObject * args ) } - - static PyObject *M_World_GetCurrent( PyObject * self ) { BPy_World *w = NULL; + + printf("Blender.World.GetCurrent() deprecated!\n\tuse Blender.Main.scenes.world instead\n"); + if( !G.scene->world ) Py_RETURN_NONE; @@ -876,6 +877,7 @@ static PyObject *World_setCurrent( BPy_World * self ) { World *world = self->world; /* If there is a world then it now has one less user */ + printf("world.setCurrent() deprecated!\n\tuse Blender.Main.scenes.world=world instead\n"); if( G.scene->world ) G.scene->world->id.us--; world->id.us++; @@ -1068,7 +1070,6 @@ PyObject *World_CreatePyObject( struct World * world ) } blen_object->world = world; return ( ( PyObject * ) blen_object ); - } int World_CheckPyObject( PyObject * py_obj ) |