forked from enlightenment/efl
Revert "evas animation: removed unnecessray checking."
This reverts commit 959c503a71
.
This commit is contained in:
parent
ce30a952b2
commit
cf79e1f7e6
|
@ -61,6 +61,9 @@ _animator_cb(void *data, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
efl_event_callback_call(obj, EFL_CANVAS_OBJECT_ANIMATION_EVENT_ANIMATION_PROGRESS_UPDATED, &pd->in->progress);
|
efl_event_callback_call(obj, EFL_CANVAS_OBJECT_ANIMATION_EVENT_ANIMATION_PROGRESS_UPDATED, &pd->in->progress);
|
||||||
|
|
||||||
|
//Check if animation stopped in animation_progress,updated callback.
|
||||||
|
if (!pd->in) return;
|
||||||
|
|
||||||
//Not end. Keep going.
|
//Not end. Keep going.
|
||||||
if ((pd->in->speed < 0 && EINA_DBL_EQ(pd->in->progress, 0)) ||
|
if ((pd->in->speed < 0 && EINA_DBL_EQ(pd->in->progress, 0)) ||
|
||||||
(pd->in->speed > 0 && EINA_DBL_EQ(pd->in->progress, 1.0)))
|
(pd->in->speed > 0 && EINA_DBL_EQ(pd->in->progress, 1.0)))
|
||||||
|
|
Loading…
Reference in New Issue