Merging r58125 through r58143 from trunk into soc-2013-depsgraph_mt
[blender.git] / source / blender / editors / object / object_add.c
index f911495d5b4c0a3a4d535584343e62368dd699d8..430f44a0029d2a7a449431663f236f82d78774aa 100644 (file)
@@ -342,7 +342,7 @@ int ED_object_add_generic_get_opts(bContext *C, wmOperator *op, float loc[3], fl
                else if (RNA_struct_property_is_set(op->ptr, "view_align"))
                        *is_view_aligned = RNA_boolean_get(op->ptr, "view_align");
                else {
-                       *is_view_aligned = U.flag & USER_ADD_VIEWALIGNED;
+                       *is_view_aligned = (U.flag & USER_ADD_VIEWALIGNED) != 0;
                        RNA_boolean_set(op->ptr, "view_align", *is_view_aligned);
                }