[animation] Make ply_animation_start idempotent

This commit is contained in:
Ray Strode 2009-09-23 17:38:54 -04:00
parent 1b10da8890
commit 1cf529bd9b

View file

@ -301,6 +301,9 @@ ply_animation_start (ply_animation_t *animation,
{
assert (animation != NULL);
if (!animation->is_stopped)
return true;
animation->loop = ply_event_loop_get_default ();
animation->display = display;
animation->stop_trigger = stop_trigger;