fix for possible bug with compilers that dont have boolean support.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 10 Jul 2013 08:01:06 +0000 (08:01 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 10 Jul 2013 08:01:06 +0000 (08:01 +0000)
source/blender/editors/object/object_add.c

index 1e0a8cefb8745a2c95085d24f452b4d2909f73f8..63172ea99d2bb16c0387ba3cb4852fbcb2a6ca26 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);
                }