From 33f36b453a0aecc5b7084738f123c366aa480098 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Thu, 2 Jul 2020 20:04:49 +0200 Subject: GPencil: Cleanup - More rename from gp_ to gpencil_ --- source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/gpencil_modifiers') diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c index a0987aafcd2..4761dc878c0 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c @@ -114,7 +114,7 @@ static void copyData(const GpencilModifierData *md, GpencilModifierData *target) } /* calculate factor of fallof */ -static float gp_hook_falloff(const struct GPHookData_cb *tData, const float len_sq) +static float gpencil_hook_falloff(const struct GPHookData_cb *tData, const float len_sq) { BLI_assert(tData->falloff_sq); if (len_sq > tData->falloff_sq) { @@ -167,7 +167,7 @@ static float gp_hook_falloff(const struct GPHookData_cb *tData, const float len_ } /* apply point deformation */ -static void gp_hook_co_apply(struct GPHookData_cb *tData, float weight, bGPDspoint *pt) +static void gpencil_hook_co_apply(struct GPHookData_cb *tData, float weight, bGPDspoint *pt) { float fac; @@ -183,7 +183,7 @@ static void gp_hook_co_apply(struct GPHookData_cb *tData, float weight, bGPDspoi len_sq = len_squared_v3v3(tData->cent, &pt->x); } - fac = gp_hook_falloff(tData, len_sq); + fac = gpencil_hook_falloff(tData, len_sq); } else { fac = tData->fac_orig; @@ -271,7 +271,7 @@ static void deformStroke(GpencilModifierData *md, if (weight < 0.0f) { continue; } - gp_hook_co_apply(&tData, weight, pt); + gpencil_hook_co_apply(&tData, weight, pt); } /* Calc geometry data. */ BKE_gpencil_stroke_geometry_update(gps); -- cgit v1.2.3