[Bf-blender-cvs] [9449808a934] greasepencil-refactor: GPencil: Small loop optimization

Antonio Vazquez noreply at git.blender.org
Sat Feb 1 18:11:01 CET 2020


Commit: 9449808a93482e34cf862033c312cbeba672bffe
Author: Antonio Vazquez
Date:   Sat Feb 1 18:09:59 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB9449808a93482e34cf862033c312cbeba672bffe

GPencil: Small loop optimization

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index c05ab2b6198..f3c7871de2c 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -298,6 +298,10 @@ static void gpencil_update_geometry(bGPdata *gpd)
 
   LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) {
     LISTBASE_FOREACH (bGPDframe *, gpf, &gpl->frames) {
+      if ((gpl->actframe != gpf) && ((gpf->flag & GP_FRAME_SELECT) == 0)) {
+        continue;
+      }
+
       LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
         if (gps->flag & GP_STROKE_TAG) {
           BKE_gpencil_stroke_geometry_update(gps);



More information about the Bf-blender-cvs mailing list