Fix T37837: mirror modifier merge does not place vertices at the center.

This was broken since BMesh.
This commit is contained in:
Brecht Van Lommel 2013-12-18 11:14:24 +01:00
parent 90b831dc09
commit 7214001cdb
Notes: blender-bot 2023-02-14 11:28:42 +01:00
Referenced by issue #37837, A bug in mirror modifier.
1 changed files with 4 additions and 0 deletions

View File

@ -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;