diff options
-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, |