From: Mikko Rasa Date: Sat, 11 Aug 2012 18:29:41 +0000 (+0300) Subject: Add missing set_looping implementation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=28c3b49b1774028aad458d665a0772713427a3fc;p=libs%2Fgl.git Add missing set_looping implementation --- diff --git a/source/animation.cpp b/source/animation.cpp index 53543d1b..9f93a8d4 100644 --- a/source/animation.cpp +++ b/source/animation.cpp @@ -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());