diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 03:23:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-28 03:23:19 +0400 |
commit | 377475f979f730278e23eea138fbcc530df63a91 (patch) | |
tree | 398ab16b4d5275f84dfdce9b2bba7ec8f6c0df27 /source/blender | |
parent | d5469dd5c2abdd677f094ea1d2969b55d23e3ea4 (diff) |
remove doubles: source/target can be swapped, check both flags.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/operators/bmo_removedoubles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_removedoubles.c b/source/blender/bmesh/operators/bmo_removedoubles.c index 96265604e09..dfc42d67f7d 100644 --- a/source/blender/bmesh/operators/bmo_removedoubles.c +++ b/source/blender/bmesh/operators/bmo_removedoubles.c @@ -493,7 +493,7 @@ static void bmesh_find_doubles_common(BMesh *bm, BMOperator *op, for (i = 0; i < verts_len; i++) { BMVert *v_check = verts[i]; - if (BMO_elem_flag_test(bm, v_check, VERT_DOUBLE)) { + if (BMO_elem_flag_test(bm, v_check, VERT_DOUBLE | VERT_TARGET)) { continue; } @@ -501,7 +501,7 @@ static void bmesh_find_doubles_common(BMesh *bm, BMOperator *op, 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)) { + if (BMO_elem_flag_test(bm, v_other, VERT_DOUBLE | VERT_TARGET)) { continue; } |