diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-17 04:19:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-17 04:28:35 +0300 |
commit | 3a51b27734b32fd0df8efd243aac8af7ac8a863a (patch) | |
tree | fd71fd40e11566b72fa6c2b6ed11ba00187185a8 /source/blender/draw | |
parent | 812b30daf582c03ff6ed89b85e783f3fcb7bb723 (diff) |
Cleanup: shadow warning
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index f178cd08e31..7b0f0f10705 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -152,7 +152,7 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd); - /* Onion skining. */ + /* Onion skinning. */ const int step = gpd->gstep; const int mode = gpd->onion_mode; const short onion_keytype = gpd->onion_keytype; @@ -174,7 +174,6 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, int frame_to = 9999; if ((is_onion) && (mode == GP_ONION_MODE_RELATIVE)) { /* 1) Found first Frame. */ - int step = gpd->gstep; int idx = 0; if (gpl->actframe) { for (bGPDframe *gf = gpl->actframe->prev; gf; gf = gf->prev) { @@ -185,12 +184,11 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, } } /* 2) Found last Frame. */ - step = gpd->gstep_next; idx = 0; for (bGPDframe *gf = gpl->actframe->next; gf; gf = gf->next) { idx++; frame_to = gf->framenum; - if (idx >= step) { + if (idx >= gpd->gstep_next) { break; } } |