[Bf-blender-cvs] [d3fa576aa70] master: Cleanup: redundant flag check

Campbell Barton noreply at git.blender.org
Fri Mar 12 06:17:09 CET 2021


Commit: d3fa576aa704a1eeed75244d4b2a124989cd0d50
Author: Campbell Barton
Date:   Fri Mar 12 12:50:36 2021 +1100
Branches: master
https://developer.blender.org/rBd3fa576aa704a1eeed75244d4b2a124989cd0d50

Cleanup: redundant flag check

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

M	source/blender/editors/gpencil/gpencil_fill.c

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

diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index a3be475678d..4749f40fac5 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1714,9 +1714,7 @@ static tGPDfill *gpencil_session_init_fill(bContext *C, wmOperator *op)
   LISTBASE_FOREACH (bGPDlayer *, gpl, &tgpf->gpd->layers) {
     LISTBASE_FOREACH (bGPDframe *, gpf, &gpl->frames) {
       LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
-        if (gps->flag & GP_STROKE_TAG) {
-          gps->flag &= ~GP_STROKE_TAG;
-        }
+        gps->flag &= ~GP_STROKE_TAG;
       }
     }
   }



More information about the Bf-blender-cvs mailing list