revert c3ab67dd
now that this misbehaviour is understood.
This commit is contained in:
parent
d3ad6dc001
commit
49c6d13386
@ -85,8 +85,14 @@ FramedCurve::interpolate ()
|
||||
}
|
||||
samples.clear ();
|
||||
|
||||
InterpolatedCurve::interpolate (curve_points, points_per_segment, CatmullRomCentripetal, false, samples);
|
||||
n_samples = samples.size();
|
||||
if (_points.size() == 3) {
|
||||
samples.push_back (curve_points.front());
|
||||
samples.push_back (curve_points.back());
|
||||
n_samples = 2;
|
||||
} else {
|
||||
InterpolatedCurve::interpolate (curve_points, points_per_segment, CatmullRomCentripetal, false, samples);
|
||||
n_samples = samples.size();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user