diff options
author | Joseph Eagar <joeedh@gmail.com> | 2006-11-19 19:00:04 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2006-11-19 19:00:04 +0300 |
commit | 6e086d4cfe88a62e0ec7f6e1a6731c0685896078 (patch) | |
tree | 3b481fa3c66bd7795c57fe1c5155e4e9ecea8192 /source/blender/python/api2_2x/NMesh.c | |
parent | b861f9b9a61952c80774e5fa41b0be1b543684cb (diff) |
=ID Properties Python Update=
ID Properties binding have now been added for textures. Also,
the beginnings of supporting "del IDProperty Object" (which
basically removes the property from it's parent group then frees
it) in python were done; really the only thing now is to figure
out exactly *how* you overload the del operator. :S
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.c')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 164011fee6e..4733bff2899 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -64,6 +64,7 @@ #include "BKE_mball.h" #include "BKE_utildefines.h" #include "BKE_depsgraph.h" +#include "BKE_idprop.h" #include "BLI_arithb.h" #include "BLI_blenlib.h" @@ -1720,7 +1721,7 @@ static PyObject *NMesh_getattr( PyObject * self, char *name ) return EXPP_incr_ret( me->name ); else if ( strcmp( name, "properties" ) == 0 ) - return BPy_Wrap_IDProperty( (ID*)me->mesh, IDP_GetProperties((ID*)me->mesh, 1) ); + return BPy_Wrap_IDProperty( (ID*)me->mesh, IDP_GetProperties((ID*)me->mesh, 1), NULL ); else if( strcmp( name, "mode" ) == 0 ) return PyInt_FromLong( me->mode ); |