fix for un-initialized layer (only bits between 1 and 20 were initialized)

This commit is contained in:
2010-08-01 10:36:02 +00:00
parent ea6730cdd1
commit e56913fe39

View File

@@ -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);