[Bf-blender-cvs] [b9c75c67dd0] temp-lineart-contained: Cleanup: redundant flag check

Campbell Barton noreply at git.blender.org
Sat Mar 13 02:00:59 CET 2021


Commit: b9c75c67dd0ab7443506c56e63c723d20ea717ec
Author: Campbell Barton
Date:   Fri Mar 12 12:50:36 2021 +1100
Branches: temp-lineart-contained
https://developer.blender.org/rBb9c75c67dd0ab7443506c56e63c723d20ea717ec

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