diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-21 16:27:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-21 16:27:48 +0400 |
commit | fba7ebcbea35d3b14f535f7f7a50c61074ae7092 (patch) | |
tree | 91045bfb888e38b02b109b6174c8b93102b649d2 /source/blender/blenkernel/intern/cdderivedmesh.c | |
parent | f7717b2e80907a974b472d0ee786f63b06efa40c (diff) |
replace add_v3_v3v3() --> add_v3_v3() where possible
Diffstat (limited to 'source/blender/blenkernel/intern/cdderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index b3e702ceee9..204ff2a0369 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -1347,12 +1347,12 @@ static void cdDM_foreachMappedFaceCenter( orig = i; VECCOPY(cent, mv[mf->v1].co); - add_v3_v3v3(cent, cent, mv[mf->v2].co); - add_v3_v3v3(cent, cent, mv[mf->v3].co); + add_v3_v3(cent, mv[mf->v2].co); + add_v3_v3(cent, mv[mf->v3].co); if (mf->v4) { normal_quad_v3( no,mv[mf->v1].co, mv[mf->v2].co, mv[mf->v3].co, mv[mf->v4].co); - add_v3_v3v3(cent, cent, mv[mf->v4].co); + add_v3_v3(cent, mv[mf->v4].co); mul_v3_fl(cent, 0.25f); } else { normal_tri_v3( no,mv[mf->v1].co, mv[mf->v2].co, mv[mf->v3].co); @@ -1750,11 +1750,11 @@ void CDDM_calc_normals(DerivedMesh *dm) else normal_tri_v3( f_no,mv[mf->v1].co, mv[mf->v2].co, mv[mf->v3].co); - add_v3_v3v3(temp_nors[mf->v1], temp_nors[mf->v1], f_no); - add_v3_v3v3(temp_nors[mf->v2], temp_nors[mf->v2], f_no); - add_v3_v3v3(temp_nors[mf->v3], temp_nors[mf->v3], f_no); + add_v3_v3(temp_nors[mf->v1], f_no); + add_v3_v3(temp_nors[mf->v2], f_no); + add_v3_v3(temp_nors[mf->v3], f_no); if(mf->v4) - add_v3_v3v3(temp_nors[mf->v4], temp_nors[mf->v4], f_no); + add_v3_v3(temp_nors[mf->v4], f_no); } /* normalize vertex normals and assign */ |