diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-15 19:14:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-15 19:14:08 +0400 |
commit | 728b713d86e69a57aa84a9aa5ce830befec67238 (patch) | |
tree | ada2f36368a3f4fda79ccc57faef512a92726873 /source/blender/blenkernel/intern/implicit.c | |
parent | 5f525bd723bb1187baab195b11677dfb14bb7322 (diff) |
use more BLI math functions.
Diffstat (limited to 'source/blender/blenkernel/intern/implicit.c')
-rw-r--r-- | source/blender/blenkernel/intern/implicit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c index d544174b0d4..158f964a846 100644 --- a/source/blender/blenkernel/intern/implicit.c +++ b/source/blender/blenkernel/intern/implicit.c @@ -1626,9 +1626,8 @@ static void cloth_calc_force(ClothModifierData *clmd, float frame, lfVector *lF, CalcFloat4(lX[mfaces[i].v1],lX[mfaces[i].v2],lX[mfaces[i].v3],lX[mfaces[i].v4],triunnormal); else CalcFloat(lX[mfaces[i].v1],lX[mfaces[i].v2],lX[mfaces[i].v3],triunnormal); - - VECCOPY(trinormal, triunnormal); - normalize_v3(trinormal); + + normalize_v3_v3(trinormal, triunnormal); // add wind from v1 VECCOPY(tmp, trinormal); |