diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-07-02 21:04:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-07-02 21:04:56 +0300 |
commit | 33f36b453a0aecc5b7084738f123c366aa480098 (patch) | |
tree | 1c231fd029f78013585fdb9d7b4140f251638580 /source/blender/gpencil_modifiers | |
parent | c5ec8d91bd125f8ed1d0a964e36e601da993f5d2 (diff) |
GPencil: Cleanup - More rename from gp_ to gpencil_
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilhook.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |