diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-01-13 06:04:12 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-01-13 06:04:12 +0300 |
commit | 9f43accdb2319b567551f652a6966a5fa56f086b (patch) | |
tree | c19431b0a9cbed1ffa6af17b020705c59f766efc /source/blender/python/api2_2x/World.c | |
parent | 5161998bbe2c76df281a920e96523298e5e8baa6 (diff) |
BPython:
- patch by Jonathan Merritt: new function Blender.Draw.Image() + its doc;
- patch by Campbell Barton: .users attribute for many types;
- tiny internal change in nmesh.hasVertexUV() method.
Thanks to Jonathan and Campbell for the patches and the patience!
Diffstat (limited to 'source/blender/python/api2_2x/World.c')
-rw-r--r-- | source/blender/python/api2_2x/World.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index 01355dd0322..88f8576cde8 100644 --- a/source/blender/python/api2_2x/World.c +++ b/source/blender/python/api2_2x/World.c @@ -921,6 +921,8 @@ static PyObject *World_GetAttr( BPy_World * self, char *name ) return World_getStar( self ); if( strcmp( name, "mist" ) == 0 ) return World_getMist( self ); + if( strcmp( name, "users" ) == 0 ) + return PyInt_FromLong( self->world->id.us ); return Py_FindMethod( BPy_World_methods, ( PyObject * ) self, name ); } |