X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FInterpolator.hh;h=2c33844262db6835cc5eaf02258f09cf5d11d767;hb=3cba2347188d70f5ee6e401774b8f86acfd1a3b9;hp=87e3acdbcf26a517fdaaa84cfbdac1c8de1c98d4;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4;p=chaz%2Fyoink diff --git a/src/Moof/Interpolator.hh b/src/Moof/Interpolator.hh index 87e3acd..2c33844 100644 --- a/src/Moof/Interpolator.hh +++ b/src/Moof/Interpolator.hh @@ -29,6 +29,8 @@ #ifndef _MOOF_INTERPOLATOR_HH_ #define _MOOF_INTERPOLATOR_HH_ +#include + namespace Mf { @@ -124,7 +126,7 @@ public: Interpolator::init(seconds, mode); calculate(0.0); // set value - calculate(0.0); // set previous + previous_ = value_; } void calculate(Scalar alpha)