Commit: b8feef59c8b463dfec0b991bf40554947c96bff1
Author: Campbell Barton
Date:   Sun Mar 15 21:53:57 2020 +1100
Branches: master
https://developer.blender.org/rBb8feef59c8b463dfec0b991bf40554947c96bff1

Cleanup: add parens for clarity

===================================================================

M       source/blender/blenloader/intern/versioning_280.c
M       source/blender/bmesh/tools/bmesh_bevel.c
M       source/blender/editors/space_info/info_draw.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_280.c 
b/source/blender/blenloader/intern/versioning_280.c
index 4b591e0d508..87442a10d12 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -2539,7 +2539,7 @@ void blo_do_versions_280(FileData *fd, Library 
*UNUSED(lib), Main *bmain)
                 V3D_SHOW_MODE_SHADE_OVERRIDE = (1 << 15),
               };
               View3D *v3d = (View3D *)sl;
-              float alpha = v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE ? 0.0f : 
1.0f;
+              float alpha = (v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE) ? 0.0f 
: 1.0f;
               v3d->overlay.texture_paint_mode_opacity = alpha;
               v3d->overlay.vertex_paint_mode_opacity = alpha;
               v3d->overlay.weight_paint_mode_opacity = alpha;
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c 
b/source/blender/bmesh/tools/bmesh_bevel.c
index 6fc53da4940..1ab318a8946 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -3164,7 +3164,7 @@ static void regularize_profile_orientation(BevelParams 
*bp, BMEdge *bme)
       }
       else {
         /* The opposite side as the first direction because we're moving the 
other way. */
-        edgehalf->leftv->is_profile_start = !toward_bv ^ right_highest;
+        edgehalf->leftv->is_profile_start = (!toward_bv) ^ right_highest;
       }
 
       /* The next jump will in the opposite direction relative to the BevVert. 
*/
diff --git a/source/blender/editors/space_info/info_draw.c 
b/source/blender/editors/space_info/info_draw.c
index d704e10cce9..60170276a16 100644
--- a/source/blender/editors/space_info/info_draw.c
+++ b/source/blender/editors/space_info/info_draw.c
@@ -53,7 +53,7 @@ static enum eTextViewContext_LineFlag 
report_line_data(TextViewContext *tvc,
 
   /* Zebra striping for background. */
   int bg_id = (report->flag & SELECT) ? TH_INFO_SELECTED : TH_BACK;
-  int shade = tvc->iter_tmp % 2 ? 4 : -4;
+  int shade = (tvc->iter_tmp % 2) ? 4 : -4;
   UI_GetThemeColorShade4ubv(bg_id, shade, bg);
 
   /* Icon color and backgound depend of report type. */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to