X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimation.cpp;h=e82a92a87ce4811b3e465b345e6f5477d1c61f27;hp=1cfb533f94eb3cd901ecba9dc501d28433224a15;hb=7c4ccb88417c23f53e0c24c4cb025b9d35b1da76;hpb=ae161d1081b42be523aecb72dfe209d6aee6f770 diff --git a/source/animation.cpp b/source/animation.cpp index 1cfb533f..e82a92a8 100644 --- a/source/animation.cpp +++ b/source/animation.cpp @@ -78,9 +78,10 @@ void Animation::add_keyframe(const Time::TimeDelta &t, const RefPtr1) + if(keyframes.size()>1 && t>(&tkf-1)->time) tkf.prev = &tkf-1; prepare_keyframe(tkf);