hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cf79e1f7e62ea18ed20d94a2238c8c9d1773fed2

commit cf79e1f7e62ea18ed20d94a2238c8c9d1773fed2
Author: Hermet Park <hermetp...@gmail.com>
Date:   Thu Nov 21 17:45:36 2019 +0900

    Revert "evas animation: removed unnecessray checking."
    
    This reverts commit 959c503a718ed548fa3251fc245bfe9c8c82d521.
---
 src/lib/evas/canvas/efl_canvas_object_animation.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/evas/canvas/efl_canvas_object_animation.c 
b/src/lib/evas/canvas/efl_canvas_object_animation.c
index b86912db60..67dec4a080 100644
--- a/src/lib/evas/canvas/efl_canvas_object_animation.c
+++ b/src/lib/evas/canvas/efl_canvas_object_animation.c
@@ -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);
 
+   //Check if animation stopped in animation_progress,updated callback.
+   if (!pd->in) return;
+
    //Not end. Keep going.
    if ((pd->in->speed < 0 && EINA_DBL_EQ(pd->in->progress, 0)) ||
        (pd->in->speed > 0 && EINA_DBL_EQ(pd->in->progress, 1.0)))

-- 


Reply via email to