mesh remove doubles was adding verts into the weld_verts.targetmap multiple times (new paranoid asserts find this stuff).

This commit is contained in:
Campbell Barton
2013-08-27 22:38:55 +00:00
parent b7a3a3894e
commit d5469dd5c2

View File

@@ -500,6 +500,11 @@ static void bmesh_find_doubles_common(BMesh *bm, BMOperator *op,
for (j = i + 1; j < verts_len; j++) {
BMVert *v_other = verts[j];
/* a match has already been found, (we could check which is best, for now don't) */
if (BMO_elem_flag_test(bm, v_other, VERT_DOUBLE)) {
continue;
}
/* Compare sort values of the verts using 3x tolerance (allowing for the tolerance
* on each of the three axes). This avoids the more expensive length comparison
* for most vertex pairs. */