]> Dogcows Code - chaz/yoink/blobdiff - src/moof/interpolator.hh
testing new non-autotools build system
[chaz/yoink] / src / moof / interpolator.hh
index 937ca8a93f28ecda6d37eba8d258c0b6ff876a2d..0a7aa012b480747e69c7e3577c1c6f3c8546f9f8 100644 (file)
@@ -95,12 +95,11 @@ public:
         */
        void update(scalar t, scalar dt)
        {
+               prior_ = state_;
+
                if (!is_done_)
                {
                        alpha_ += dt * scale_;
-                       prior_ = state_;
-                       state_ = function_(a_, b_, alpha_);
-
                        if (alpha_ > 1.0)
                        {
                                switch (mode_)
@@ -135,6 +134,8 @@ public:
                                                break;
                                }
                        }
+
+                       state_ = function_(a_, b_, alpha_);
                }
        }
 
This page took 0.01666 seconds and 4 git commands to generate.