From 34477bbfcde34d0b27f04eccdddd0a093d8be1c0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Sep 2022 14:23:52 +1000 Subject: Cleanup: remove redundant parenthesis --- source/blender/blenkernel/intern/kelvinlet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern') diff --git a/source/blender/blenkernel/intern/kelvinlet.c b/source/blender/blenkernel/intern/kelvinlet.c index 73a84f06ad8..4ccd848b9d7 100644 --- a/source/blender/blenkernel/intern/kelvinlet.c +++ b/source/blender/blenkernel/intern/kelvinlet.c @@ -154,7 +154,7 @@ static void kelvinlet_scale(float disp[3], sub_v3_v3v3(radius_vertex, vertex_co, location); const float radius = len_v3(radius_vertex); const float radius_e = sqrtf(pow2f(radius) + pow2f(p->radius_scaled[0])); - const float u = (2.0f * p->b - p->a) * ((1.0f / pow3f(radius_e))) + + const float u = (2.0f * p->b - p->a) * (1.0f / pow3f(radius_e)) + ((3.0f * pow2f(p->radius_scaled[0])) / (2.0f * pow5f(radius_e))); const float fade = u * p->c; mul_v3_v3fl(disp, radius_vertex, fade * p->f); @@ -181,7 +181,7 @@ static void kelvinlet_twist(float disp[3], sub_v3_v3v3(radius_vertex, vertex_co, location); const float radius = len_v3(radius_vertex); const float radius_e = sqrtf(pow2f(radius) + pow2f(p->radius_scaled[0])); - const float u = -p->a * ((1.0f / pow3f(radius_e))) + + const float u = -p->a * (1.0f / pow3f(radius_e)) + ((3.0f * pow2f(p->radius_scaled[0])) / (2.0f * pow5f(radius_e))); const float fade = u * p->c; cross_v3_v3v3(q_r, normal, radius_vertex); -- cgit v1.2.3