Curve Fitting: sync with upstream

Correct accidental float use
This commit is contained in:
Campbell Barton 2016-08-05 08:34:23 +10:00
parent 357480f8c3
commit e1a4219523
1 changed files with 4 additions and 4 deletions

View File

@ -623,13 +623,13 @@ static void cubic_from_points_offset_fallback(
}
}
float alpha_l = (dists[0] / 0.75) / dot_vnvn(tan_l, a[0], dims);
float alpha_r = (dists[1] / 0.75) / -dot_vnvn(tan_r, a[1], dims);
double alpha_l = (dists[0] / 0.75) / dot_vnvn(tan_l, a[0], dims);
double alpha_r = (dists[1] / 0.75) / -dot_vnvn(tan_r, a[1], dims);
if (!(alpha_l > 0.0f)) {
if (!(alpha_l > 0.0)) {
alpha_l = dir_dist / 3.0;
}
if (!(alpha_r > 0.0f)) {
if (!(alpha_r > 0.0)) {
alpha_r = dir_dist / 3.0;
}