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>2014-08-14 06:49:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-14 06:49:02 +0400
commit55d3277d0c8939ce6ab9de3a7b34bfc3eec41254 (patch)
tree6fc3e06021e6c1c629054245af1233fed313f0da /source/blender
parent15df4ddf7b1578ae1ef80fdce428570d66b1b69a (diff)
BMesh: use a smaller dist3 threshold
Matches array modifier remove-doubles
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/bmesh/operators/bmo_removedoubles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_removedoubles.c b/source/blender/bmesh/operators/bmo_removedoubles.c
index 954f31fc4a8..75f9feef413 100644
--- a/source/blender/bmesh/operators/bmo_removedoubles.c
+++ b/source/blender/bmesh/operators/bmo_removedoubles.c
@@ -529,7 +529,7 @@ static void bmesh_find_doubles_common(BMesh *bm, BMOperator *op,
const float dist = BMO_slot_float_get(op->slots_in, "dist");
const float dist_sq = dist * dist;
- const float dist3 = dist * 3.0f;
+ const float dist3 = (M_SQRT3 + 0.00005f) * dist; /* Just above sqrt(3) */
/* Test whether keep_verts arg exists and is non-empty */
if (BMO_slot_exists(op->slots_in, "keep_verts")) {