]> git.tdb.fi Git - libs/gl.git/commitdiff
Add missing set_looping implementation
authorMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 18:29:41 +0000 (21:29 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 11 Aug 2012 18:29:41 +0000 (21:29 +0300)
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());