Skip to content
Snippets Groups Projects
Commit 71870e59 authored by Ole Untzelmann's avatar Ole Untzelmann
Browse files

[Animations] Fixed a bug in the interpolator

parent 2e3a6caa
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
} }
} }
inline const T& interpolate(const float _progress) inline const T interpolate(const float _progress)
{ {
//std::cout << "[LinearInterpolator] progress: "<<_progress<<std::endl; //std::cout << "[LinearInterpolator] progress: "<<_progress<<std::endl;
...@@ -127,7 +127,7 @@ public: ...@@ -127,7 +127,7 @@ public:
{ {
} }
inline const T& interpolate(float _progress) inline const T interpolate(float _progress)
{ {
unsigned int i = 0; unsigned int i = 0;
for(i = 0 ;i < mKeypoints.size();i++) for(i = 0 ;i < mKeypoints.size();i++)
...@@ -187,7 +187,7 @@ public: ...@@ -187,7 +187,7 @@ public:
// insert_control_point(data, 0.0f); // insert_control_point(data, 0.0f);
} }
const T& interpolate(float progress) const T interpolate(float progress)
{ {
curve.insertKnot(progress); curve.insertKnot(progress);
// TODO: Interpolation code is missing // TODO: Interpolation code is missing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment