ecore_anim: Simplify timeline terminal condition

Summary:
We should only ever have a pos of 1.0 once, the current terminal
condition gives the impression that it might be possible to have
more than one 1.0 firing.

This would break a lot of code.

No functional change intended.
Depends on D6464

Reviewers: devilhorns, zmike

Reviewed By: zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6465
This commit is contained in:
Derek Foreman 2018-06-28 13:12:03 -05:00
parent 024d38074c
commit 51d1360a18
1 changed files with 1 additions and 1 deletions

View File

@ -989,7 +989,7 @@ _ecore_animator_run(void *data)
pos = 0.0;
}
run_ret = animator->run_func(animator->run_data, pos);
if (t >= (animator->start + animator->run) && (pos >= 1.0)) run_ret = EINA_FALSE;
if (eina_dbl_exact(pos, 1.0)) run_ret = EINA_FALSE;
return run_ret;
}