From 950ed6929792952044a57cad00833bddc8d39f45 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 28 Apr 2012 08:29:20 +0000 Subject: code cleanup: - replace inline face UV center calc. - use const float[3] for mesh and uv functions. - remove unused define --- source/blender/modifiers/intern/MOD_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern') diff --git a/source/blender/modifiers/intern/MOD_hook.c b/source/blender/modifiers/intern/MOD_hook.c index d8fbb6f468f..b115e5bb244 100644 --- a/source/blender/modifiers/intern/MOD_hook.c +++ b/source/blender/modifiers/intern/MOD_hook.c @@ -128,7 +128,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest, } } -static float hook_falloff(float *co_1, float *co_2, const float falloff_squared, float fac) +static float hook_falloff(const float co_1[3], const float co_2[3], const float falloff_squared, float fac) { if (falloff_squared) { float len_squared = len_squared_v3v3(co_1, co_2); -- cgit v1.2.3