[Bf-blender-cvs] [524fdc23f2f] greasepencil-refactor: GPencil: Cleanup unused variable for old derived_frames array

Antonio Vazquez noreply at git.blender.org
Mon Jan 20 16:52:07 CET 2020


Commit: 524fdc23f2f384ebd66917d32e57cec42e619a84
Author: Antonio Vazquez
Date:   Mon Jan 20 16:51:58 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB524fdc23f2f384ebd66917d32e57cec42e619a84

GPencil: Cleanup unused variable for old derived_frames array

The variable layer_index is not required now.

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

M	source/blender/blenkernel/intern/gpencil.c

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

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 4bad787353e..0fc08cd43b5 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -3697,10 +3697,7 @@ void BKE_gpencil_visible_stroke_iter(
   const bool onion_loop = (gpd->onion_flag & GP_ONION_LOOP) != 0;
   const short onion_keytype = gpd->onion_keytype;
 
-  /* Index in the layer in the listbase. */
-  int layer_idx = -1;
   LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) {
-    layer_idx++;
 
     bGPDframe *act_gpf = gpl->actframe;
     bGPDframe *sta_gpf = act_gpf;



More information about the Bf-blender-cvs mailing list