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/Metaball.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/Metaball.c')
-rw-r--r-- | source/blender/python/api2_2x/Metaball.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Metaball.c b/source/blender/python/api2_2x/Metaball.c index 9a64820cd07..67645d61d2e 100644 --- a/source/blender/python/api2_2x/Metaball.c +++ b/source/blender/python/api2_2x/Metaball.c @@ -1092,6 +1092,8 @@ static PyObject *MetaballGetAttr( BPy_Metaball * self, char *name ) return Metaball_getloc( self ); if( strcmp( name, "size" ) == 0 ) return Metaball_getsize( self ); + if( strcmp( name, "users" ) == 0 ) + return PyInt_FromLong( self->metaball->id.us ); return Py_FindMethod( BPy_Metaball_methods, ( PyObject * ) self, name ); } |