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:
parent
e4089efb4c
commit
452cb1abbf
@ -515,7 +515,7 @@ animation_animator_ensure_animator (ClutterAnimator *animator,
|
|||||||
{
|
{
|
||||||
next_key = initial_key;
|
next_key = initial_key;
|
||||||
|
|
||||||
property_iter->end = 1.0;
|
property_iter->end = property_iter->start;
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_interval_set_final_value (property_iter->interval,
|
clutter_interval_set_final_value (property_iter->interval,
|
||||||
@ -923,7 +923,7 @@ clutter_animator_compute_value (ClutterAnimator *animator,
|
|||||||
g_value_copy (&previous->value, value);
|
g_value_copy (&previous->value, value);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
if (next->progress >= progress)
|
if (next && next->progress >= progress)
|
||||||
{
|
{
|
||||||
ClutterInterval *interval;
|
ClutterInterval *interval;
|
||||||
ClutterAlpha *alpha;
|
ClutterAlpha *alpha;
|
||||||
|
Loading…
Reference in New Issue
Block a user