diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2006-04-23 16:56:58 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2006-04-23 16:56:58 +0400 |
commit | e8b2d0d21192d45a3c3f4ea307a8aef4fe815e7d (patch) | |
tree | 1f9fceab137ff3e63d6139b4ba7aacf1d1e8693b /source/blender/python/api2_2x/Modifier.c | |
parent | b3bd7c869ac969924e1b273838f0e9f8d94beafd (diff) |
fix compiler warnings.
The 'excess elements in struct initializer' is fatal on some platforms.
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r-- | source/blender/python/api2_2x/Modifier.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c index cf0e868d920..7bac0fc0745 100644 --- a/source/blender/python/api2_2x/Modifier.c +++ b/source/blender/python/api2_2x/Modifier.c @@ -267,7 +267,7 @@ static int Modifier_setName( BPy_Modifier * self, PyObject * attr ) return EXPP_ReturnIntError( PyExc_TypeError, "expected string arg" ); if (self->md==NULL) - return (EXPP_ReturnPyObjError( PyExc_RuntimeError, + return (EXPP_ReturnIntError( PyExc_RuntimeError, "This modifier has been removed!" )); BLI_strncpy( self->md->name, name, sizeof( self->md->name ) ); @@ -1102,7 +1102,6 @@ static PyGetSetDef BPy_ModSeq_getseters[] = { NULL, (void *)eModifierType_Mirror}, {"DECIMATE", (getter)ModSeq_typeConst, (setter)NULL, - (getter)ModSeq_typeConst, (setter)NULL, NULL, (void *)eModifierType_Decimate}, {"WAVE", (getter)ModSeq_typeConst, (setter)NULL, |