Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-18 14:14:24 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-18 14:15:11 +0400
commit7214001cdb142cb2556135b1f6e35290c62b9a69 (patch)
treea710d8db7c3821d9afabfc815605dcdf4b1cbb59
parent90b831dc097f78114634c464a216663724719e81 (diff)
Fix T37837: mirror modifier merge does not place vertices at the center.
This was broken since BMesh.
-rw-r--r--source/blender/modifiers/intern/MOD_mirror.c4
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;