diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-01 14:36:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-01 14:36:02 +0400 |
commit | e56913fe3961e9ab34b15e5317d83e9110e20857 (patch) | |
tree | fad4bc7bd69020ff7c9c4afb92f4c6905f442501 /source/blender | |
parent | ea6730cdd1f3ad77d6cd9ba511b1c632ef225542 (diff) |
fix for un-initialized layer (only bits between 1 and 20 were initialized)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index e08661b1795..50851b57a65 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -241,7 +241,7 @@ int ED_object_add_generic_get_opts(bContext *C, wmOperator *op, float *loc, floa if(RNA_property_is_set(op->ptr, "layer")) { RNA_boolean_get_array(op->ptr, "layer", layer_values); - + *layer= 0; for(a=0; a<20; a++) { if(layer_values[a]) *layer |= (1 << a); |