Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Hnidek <jiri.hnidek@tul.cz>2007-04-18 19:30:33 +0400
committerJiri Hnidek <jiri.hnidek@tul.cz>2007-04-18 19:30:33 +0400
commit58e1ceadf4a2bc0b2896de63f35e624ac5c66235 (patch)
tree52a32f95682c0def886566248383ffa56b9c350a /source/blender/python/api2_2x/Effect.c
parent3e1a5ce7a2596ebc135455f9934d128223cc089a (diff)
== Python API ==
Bug fix for Effect.setStype().
Diffstat (limited to 'source/blender/python/api2_2x/Effect.c')
-rw-r--r--source/blender/python/api2_2x/Effect.c2
1 files changed, 1 insertions, 1 deletions
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", &param ) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected an int as argument" );
- self->effect->stype |= 1-param;
+ self->effect->stype = param;
return 0;
}