X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FInterpolator.hh;h=2c33844262db6835cc5eaf02258f09cf5d11d767;hp=87e3acdbcf26a517fdaaa84cfbdac1c8de1c98d4;hb=29e3d45f7bbbf31eadf793c41ff2b3d9c47b7539;hpb=16d1a05b0777e97a45c48e2874aa4e5cc791282e 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)