Fix T37837: mirror modifier merge does not place vertices at the center.
This was broken since BMesh.
This commit is contained in:
parent
90b831dc09
commit
7214001cdb
Notes:
blender-bot
2023-02-14 11:28:42 +01:00
Referenced by issue #37837, A bug in mirror modifier.
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue