diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-08-24 14:26:08 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-08-24 14:27:08 +0300 |
commit | b1ed72f152f041c3f907f9359ba2a7119d256876 (patch) | |
tree | 9085a531159e451ca3d8e7f63a0ed7b75b1f3bae | |
parent | 8b806b8e64115d231841d9bf203b254263b33b96 (diff) |
Cleanup: use eval as suffix
Follow conversion already used in most places.
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 687d2de7eef..e043ac9a563 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -87,13 +87,13 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, cache_ob->tot_vertex = 0; cache_ob->tot_triangles = 0; - int eval_idx = 0; + int idx_eval = 0; for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) { bGPDframe *init_gpf = NULL; const bool is_onion = ((do_onion) && (gpl->onion_flag & GP_LAYER_ONIONSKIN)); if (gpl->flag & GP_LAYER_HIDE) { - eval_idx++; + idx_eval++; continue; } @@ -102,7 +102,7 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, init_gpf = gpl->frames.first; } else { - init_gpf = &ob->runtime.gpencil_evaluated_frames[eval_idx]; + init_gpf = &ob->runtime.gpencil_evaluated_frames[idx_eval]; } if (init_gpf == NULL) { @@ -118,7 +118,7 @@ static void gpencil_calc_vertex(GPENCIL_StorageList *stl, break; } } - eval_idx++; + idx_eval++; } cache->b_fill.tot_vertex = cache_ob->tot_triangles * 3; @@ -1936,8 +1936,8 @@ void gpencil_populate_datablock(GPENCIL_e_data *e_data, } /* Get evaluated frames array data */ - int eval_idx = BLI_findindex(&gpd->layers, gpl); - gpf_eval = &ob->runtime.gpencil_evaluated_frames[eval_idx]; + int idx_eval = BLI_findindex(&gpd->layers, gpl); + gpf_eval = &ob->runtime.gpencil_evaluated_frames[idx_eval]; /* draw onion skins */ if (!ID_IS_LINKED(&gpd->id)) { |