From: Mikko Rasa Date: Sun, 17 Jan 2021 17:02:26 +0000 (+0200) Subject: Use matching type to retrieve interpolated spline values X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=0d4a20af1ebfcdfe3d53e5754977463fa51c8194 Use matching type to retrieve interpolated spline values This way the double-to-float conversion is done at a more relevant stage. --- diff --git a/source/animation.cpp b/source/animation.cpp index e568d221..a8d9e969 100644 --- a/source/animation.cpp +++ b/source/animation.cpp @@ -391,7 +391,7 @@ void Animation::ValueCurve::apply(float x, KeyFrame::AnimatedUniform &uni) co uni.size = N; typename Interpolate::Spline::Value value = spline(x); for(unsigned i=0; i::get(value, i); + uni.values[i] = Interpolate::SplineValue::get(value, i); }