[Bf-blender-cvs] [7199b51f726] temp-lanpr-cleanup: Cleanup: quiet warning -Wparentheses

Campbell Barton noreply at git.blender.org
Mon Sep 16 14:56:33 CEST 2019


Commit: 7199b51f7264692c42420e6e1a38bdc3e8c522a8
Author: Campbell Barton
Date:   Mon Sep 16 04:34:31 2019 +1000
Branches: temp-lanpr-cleanup
https://developer.blender.org/rB7199b51f7264692c42420e6e1a38bdc3e8c522a8

Cleanup: quiet warning -Wparentheses

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

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index a73c24d2892..aacddd074aa 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1185,7 +1185,7 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache,
       }
     }
 
-    if ((gpl->actframe) && (gpl->actframe->framenum == gpf->framenum) || (!is_multiedit) ||
+    if ((gpl->actframe && (gpl->actframe->framenum == gpf->framenum)) || (!is_multiedit) ||
         (overlay_multiedit)) {
       /* hide any blend layer */
       if ((!stl->storage->simplify_blend) || (gpl->blend_mode == eGplBlendMode_Regular)) {



More information about the Bf-blender-cvs mailing list