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
path: root/extern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-11 17:58:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-11 18:01:49 +0300
commit6478f90cc2301ac86ed0fae19f626fd67ebf00cc (patch)
tree0f3ae9b76cd8abf01cf9d6e867f3ddf8e774872f /extern
parent8e774b3ae4a3ae169e6a688321b41460bc9e4f15 (diff)
curve_fit_nd: fix assert caused by too small epsilon
Curve decimate would assert in some cases.
Diffstat (limited to 'extern')
-rw-r--r--extern/curve_fit_nd/intern/curve_fit_cubic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/curve_fit_nd/intern/curve_fit_cubic.c b/extern/curve_fit_nd/intern/curve_fit_cubic.c
index ed855d34b08..0005cbe5a93 100644
--- a/extern/curve_fit_nd/intern/curve_fit_cubic.c
+++ b/extern/curve_fit_nd/intern/curve_fit_cubic.c
@@ -462,7 +462,7 @@ static double points_calc_circumference_factor(
* We could try support this but will likely cause extreme >1 scales which could cause other issues. */
// assert(angle >= len_tangent);
double factor = (angle / len_tangent);
- assert(factor < (M_PI / 2) + (DBL_EPSILON * 10));
+ assert(factor < (M_PI / 2) + 1e-6);
return factor;
}
else {