From 7199e2288f3df27ee2d21593da64ef4597fb86fd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 28 Mar 2014 14:53:37 +1100 Subject: Code cleanup: use sqrtf when input and output are float --- source/blender/modifiers/intern/MOD_weightvg_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_weightvg_util.c') diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.c b/source/blender/modifiers/intern/MOD_weightvg_util.c index 348b0361464..12ecae8ad4f 100644 --- a/source/blender/modifiers/intern/MOD_weightvg_util.c +++ b/source/blender/modifiers/intern/MOD_weightvg_util.c @@ -94,10 +94,10 @@ void weightvg_do_map(int num, float *new_w, short falloff_type, CurveMapping *cm fac = 3.0f * fac * fac - 2.0f * fac * fac * fac; break; case MOD_WVG_MAPPING_ROOT: - fac = (float)sqrt(fac); + fac = sqrtf(fac); break; case MOD_WVG_MAPPING_SPHERE: - fac = (float)sqrt(2 * fac - fac * fac); + fac = sqrtf(2 * fac - fac * fac); break; case MOD_WVG_MAPPING_RANDOM: fac = BLI_rng_get_float(rng) * fac; -- cgit v1.2.3