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:
Diffstat (limited to 'source/blender/editors/util/select_utils.c')
-rw-r--r--source/blender/editors/util/select_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/util/select_utils.c b/source/blender/editors/util/select_utils.c
index 14a6d751bb1..4e8cf1e92e6 100644
--- a/source/blender/editors/util/select_utils.c
+++ b/source/blender/editors/util/select_utils.c
@@ -88,11 +88,11 @@ int ED_select_similar_compare_float(const float delta, const float thresh, const
{
switch (compare) {
case SIM_CMP_EQ:
- return (fabsf(delta) < thresh + FLT_EPSILON);
+ return (fabsf(delta) <= thresh);
case SIM_CMP_GT:
- return ((delta + thresh) > -FLT_EPSILON);
+ return ((delta + thresh) >= 0.0);
case SIM_CMP_LT:
- return ((delta - thresh) < FLT_EPSILON);
+ return ((delta - thresh) <= 0.0);
default:
BLI_assert_unreachable();
return 0;