diff --git a/source/blender/python/api2_2x/Effect.c b/source/blender/python/api2_2x/Effect.c index 4f689de4b05..560b67c1933 100644 --- a/source/blender/python/api2_2x/Effect.c +++ b/source/blender/python/api2_2x/Effect.c @@ -795,7 +795,7 @@ static int Effect_setStype( BPy_Effect * self, PyObject * args ) if( !PyArg_Parse( args, "h", ¶m ) ) return EXPP_ReturnIntError( PyExc_TypeError, "expected an int as argument" ); - self->effect->stype |= 1-param; + self->effect->stype = param; return 0; }