diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-24 01:50:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-24 05:06:58 +0300 |
commit | 67d9647ae4e17bb14d89933e392381e01ebae6a0 (patch) | |
tree | 6bfdf64c7cdc1b2215e571b4f86906054758925a /source/blender/blenkernel | |
parent | a68e8ac993a169b63365ffc099d3f01581f6ce0b (diff) |
Cleanup: use eval as a suffix
Follow conversion already used in most places.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 8 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/gpencil_modifier.c | 40 |
3 files changed, 25 insertions, 25 deletions
diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index d9c46cdfd10..a05c3d68e3a 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -75,7 +75,7 @@ void BKE_gpencil_free_stroke(struct bGPDstroke *gps); bool BKE_gpencil_free_strokes(struct bGPDframe *gpf); void BKE_gpencil_free_frames(struct bGPDlayer *gpl); void BKE_gpencil_free_layers(struct ListBase *list); -bool BKE_gpencil_free_frame_runtime_data(struct bGPDframe *eval_gpf); +bool BKE_gpencil_free_frame_runtime_data(struct bGPDframe *gpf_eval); void BKE_gpencil_free(struct bGPdata *gpd, bool free_all); void BKE_gpencil_batch_cache_dirty_tag(struct bGPdata *gpd); diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c index 2faeb0ea8c4..31c05497b8d 100644 --- a/source/blender/blenkernel/intern/gpencil.c +++ b/source/blender/blenkernel/intern/gpencil.c @@ -148,19 +148,19 @@ bool BKE_gpencil_free_strokes(bGPDframe *gpf) } /* Free strokes and colors belonging to a gp-frame */ -bool BKE_gpencil_free_frame_runtime_data(bGPDframe *eval_gpf) +bool BKE_gpencil_free_frame_runtime_data(bGPDframe *gpu_eval) { bGPDstroke *gps_next; - if (!eval_gpf) { + if (!gpu_eval) { return false; } /* free strokes */ - for (bGPDstroke *gps = eval_gpf->strokes.first; gps; gps = gps_next) { + for (bGPDstroke *gps = gpu_eval->strokes.first; gps; gps = gps_next) { gps_next = gps->next; BKE_gpencil_free_stroke(gps); } - BLI_listbase_clear(&eval_gpf->strokes); + BLI_listbase_clear(&gpu_eval->strokes); return true; } diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c index 7b5f721cc50..daa63515c3d 100644 --- a/source/blender/blenkernel/intern/gpencil_modifier.c +++ b/source/blender/blenkernel/intern/gpencil_modifier.c @@ -779,18 +779,18 @@ void BKE_gpencil_subdivide(bGPDstroke *gps, int level, int flag) } /* Copy frame but do not assign new memory */ -static void gpencil_frame_copy_noalloc(Object *ob, bGPDframe *gpf, bGPDframe *eval_gpf) +static void gpencil_frame_copy_noalloc(Object *ob, bGPDframe *gpf, bGPDframe *gpf_eval) { - eval_gpf->prev = gpf->prev; - eval_gpf->next = gpf->next; - eval_gpf->framenum = gpf->framenum; - eval_gpf->flag = gpf->flag; - eval_gpf->key_type = gpf->key_type; - eval_gpf->runtime = gpf->runtime; - copy_m4_m4(eval_gpf->runtime.parent_obmat, gpf->runtime.parent_obmat); + gpf_eval->prev = gpf->prev; + gpf_eval->next = gpf->next; + gpf_eval->framenum = gpf->framenum; + gpf_eval->flag = gpf->flag; + gpf_eval->key_type = gpf->key_type; + gpf_eval->runtime = gpf->runtime; + copy_m4_m4(gpf_eval->runtime.parent_obmat, gpf->runtime.parent_obmat); /* copy strokes */ - BLI_listbase_clear(&eval_gpf->strokes); + BLI_listbase_clear(&gpf_eval->strokes); for (bGPDstroke *gps_src = gpf->strokes.first; gps_src; gps_src = gps_src->next) { /* make copy of source stroke */ bGPDstroke *gps_dst = BKE_gpencil_stroke_duplicate(gps_src); @@ -808,7 +808,7 @@ static void gpencil_frame_copy_noalloc(Object *ob, bGPDframe *gpf, bGPDframe *ev pt_dst->runtime.idx_orig = i; } - BLI_addtail(&eval_gpf->strokes, gps_dst); + BLI_addtail(&gpf_eval->strokes, gps_dst); } } @@ -816,19 +816,19 @@ static void gpencil_frame_copy_noalloc(Object *ob, bGPDframe *gpf, bGPDframe *ev static void gpencil_evaluated_frame_ensure(int idx, Object *ob, bGPDframe *gpf, - bGPDframe **eval_gpf) + bGPDframe **gpf_eval) { /* Create evaluated frames array data or expand. */ bGPDframe *evaluated_frames = ob->runtime.gpencil_evaluated_frames; - *eval_gpf = &evaluated_frames[idx]; + *gpf_eval = &evaluated_frames[idx]; /* If already exist a evaluated frame create a new one. */ - if (*eval_gpf != NULL) { + if (*gpf_eval != NULL) { /* first clear temp data */ - BKE_gpencil_free_frame_runtime_data(*eval_gpf); + BKE_gpencil_free_frame_runtime_data(*gpf_eval); } /* Copy data (do not assign new memory). */ - gpencil_frame_copy_noalloc(ob, gpf, *eval_gpf); + gpencil_frame_copy_noalloc(ob, gpf, *gpf_eval); } /* Calculate gpencil modifiers */ @@ -880,8 +880,8 @@ void BKE_gpencil_modifiers_calc(Depsgraph *depsgraph, Scene *scene, Object *ob) } /* Create a duplicate data set of stroke to modify. */ - bGPDframe *eval_gpf = NULL; - gpencil_evaluated_frame_ensure(idx, ob, gpf, &eval_gpf); + bGPDframe *gpf_eval = NULL; + gpencil_evaluated_frame_ensure(idx, ob, gpf, &gpf_eval); /* Skip all if some disable flag is enabled. */ if ((ob->greasepencil_modifiers.first == NULL) || (is_multiedit) || (simplify_modif)) { @@ -891,13 +891,13 @@ void BKE_gpencil_modifiers_calc(Depsgraph *depsgraph, Scene *scene, Object *ob) /* Apply geometry modifiers (create new geometry). */ if (BKE_gpencil_has_geometry_modifiers(ob)) { - BKE_gpencil_geometry_modifiers(depsgraph, ob, gpl, eval_gpf, is_render); + BKE_gpencil_geometry_modifiers(depsgraph, ob, gpl, gpf_eval, is_render); } /* Loop all strokes and deform them. */ - for (bGPDstroke *gps = eval_gpf->strokes.first; gps; gps = gps->next) { + for (bGPDstroke *gps = gpf_eval->strokes.first; gps; gps = gps->next) { /* Apply modifiers that only deform geometry */ - BKE_gpencil_stroke_modifiers(depsgraph, ob, gpl, eval_gpf, gps, is_render); + BKE_gpencil_stroke_modifiers(depsgraph, ob, gpl, gpf_eval, gps, is_render); } idx++; |