fix compiler warnings.
authorStephen Swaney <sswaney@centurytel.net>
Sun, 23 Apr 2006 12:56:58 +0000 (12:56 +0000)
committerStephen Swaney <sswaney@centurytel.net>
Sun, 23 Apr 2006 12:56:58 +0000 (12:56 +0000)
The 'excess elements in struct initializer' is fatal on some platforms.

source/blender/python/api2_2x/Modifier.c

index cf0e868d9208a533f1eb1bd50bb3d9116c609260..7bac0fc07457bdbe6bb68b313f7b78c92ad17477 100644 (file)
@@ -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 ) );
@@ -1101,7 +1101,6 @@ static PyGetSetDef BPy_ModSeq_getseters[] = {
         (getter)ModSeq_typeConst, (setter)NULL,
         NULL, (void *)eModifierType_Mirror},
        {"DECIMATE",
-        (getter)ModSeq_typeConst, (setter)NULL,
         (getter)ModSeq_typeConst, (setter)NULL,
         NULL, (void *)eModifierType_Decimate},
        {"WAVE",