]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation.cpp
Add missing set_looping implementation
[libs/gl.git] / source / animation.cpp
index 53543d1b89b8426f576305604c046651cea156a7..9f93a8d494222424dcc276e9547b29d488f9cd81 100644 (file)
@@ -28,6 +28,11 @@ void Animation::add_keyframe(const Time::TimeDelta &t, const KeyFrame &kf)
        keyframes.push_back(tkf);
 }
 
+void Animation::set_looping(bool l)
+{
+       looping = l;
+}
+
 void Animation::prepare_keyframe(TimedKeyFrame &tkf)
 {
        tkf.prev = (keyframes.empty() ? 0 : &keyframes.back());