From 0d4a20af1ebfcdfe3d53e5754977463fa51c8194 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 17 Jan 2021 19:02:26 +0200 Subject: [PATCH] Use matching type to retrieve interpolated spline values This way the double-to-float conversion is done at a more relevant stage. --- source/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0