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:
authorCampbell Barton <ideasman42@gmail.com>2013-08-28 03:23:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-28 03:23:19 +0400
commit377475f979f730278e23eea138fbcc530df63a91 (patch)
tree398ab16b4d5275f84dfdce9b2bba7ec8f6c0df27 /source/blender/bmesh/operators/bmo_removedoubles.c
parentd5469dd5c2abdd677f094ea1d2969b55d23e3ea4 (diff)
remove doubles: source/target can be swapped, check both flags.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_removedoubles.c')
-rw-r--r--source/blender/bmesh/operators/bmo_removedoubles.c4
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;
}