animator: fix looping when doing cubic interpolation

When using interpolation and the last key is not at 1.0 a bouncing
artifact could be observed after the keys.
This commit is contained in:
Øyvind Kolås 2010-05-05 18:15:12 +01:00
parent e4089efb4c
commit 452cb1abbf

View File

@ -515,7 +515,7 @@ animation_animator_ensure_animator (ClutterAnimator *animator,
{
next_key = initial_key;
property_iter->end = 1.0;
property_iter->end = property_iter->start;
}
clutter_interval_set_final_value (property_iter->interval,
@ -923,7 +923,7 @@ clutter_animator_compute_value (ClutterAnimator *animator,
g_value_copy (&previous->value, value);
return TRUE;
}
if (next->progress >= progress)
if (next && next->progress >= progress)
{
ClutterInterval *interval;
ClutterAlpha *alpha;