diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-18 14:14:24 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-12-18 14:15:11 +0400 |
commit | 7214001cdb142cb2556135b1f6e35290c62b9a69 (patch) | |
tree | a710d8db7c3821d9afabfc815605dcdf4b1cbb59 /source/blender/modifiers/intern/MOD_mirror.c | |
parent | 90b831dc097f78114634c464a216663724719e81 (diff) |
Fix T37837: mirror modifier merge does not place vertices at the center.
This was broken since BMesh.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mirror.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mirror.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_mirror.c b/source/blender/modifiers/intern/MOD_mirror.c index 1b9fcd9f34e..ec09b80dc5a 100644 --- a/source/blender/modifiers/intern/MOD_mirror.c +++ b/source/blender/modifiers/intern/MOD_mirror.c @@ -187,6 +187,10 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd, if (UNLIKELY(len_squared_v3v3(mv_prev->co, mv->co) < tolerance_sq)) { *vtmap_a = maxVerts + i; tot_vtargetmap++; + + /* average location */ + mid_v3_v3v3(mv->co, mv_prev->co, mv->co); + copy_v3_v3(mv_prev->co, mv->co); } else { *vtmap_a = -1; |