[Bf-blender-cvs] [9f6c0715ecc] lanpr-under-gp: LineArt: Replace Loop by LISTBASE_FOREACH

Antonio Vazquez noreply at git.blender.org
Tue Jul 7 16:38:16 CEST 2020


Commit: 9f6c0715ecc18ba1af4d5c9e5f49f4d3b030777d
Author: Antonio Vazquez
Date:   Tue Jul 7 16:37:56 2020 +0200
Branches: lanpr-under-gp
https://developer.blender.org/rB9f6c0715ecc18ba1af4d5c9e5f49f4d3b030777d

LineArt: Replace Loop by LISTBASE_FOREACH

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

M	source/blender/editors/lineart/lineart_cpu.c

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

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index c362c27b66f..4b4d8f0d920 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -3972,8 +3972,7 @@ static void lineart_clear_gpencil_flags(Depsgraph *dg, int frame)
                              DEG_ITER_OBJECT_FLAG_DUPLI | DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET) {
     if (ob->type == OB_GPENCIL) {
       bGPdata *gpd = ((Object *)ob->id.orig_id)->data;
-      bGPDlayer *gpl;
-      for (gpl = gpd->layers.first; gpl; gpl = gpl->next) {
+      LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) {
         bGPDframe *gpf = BKE_gpencil_layer_frame_find(gpl, frame);
         if (gpf == NULL) {
           continue;



More information about the Bf-blender-cvs mailing list