mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
curve_fit_nd: fix assert caused by too small epsilon
Curve decimate would assert in some cases.
This commit is contained in:
parent
8e774b3ae4
commit
6478f90cc2
1 changed files with 1 additions and 1 deletions
2
extern/curve_fit_nd/intern/curve_fit_cubic.c
vendored
2
extern/curve_fit_nd/intern/curve_fit_cubic.c
vendored
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue