Commit 71870e59 authored by Ole Untzelmann's avatar Ole Untzelmann
Browse files

[Animations] Fixed a bug in the interpolator

parent 2e3a6caa
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment