From cf79e1f7e62ea18ed20d94a2238c8c9d1773fed2 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 21 Nov 2019 17:45:36 +0900 Subject: [PATCH] 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)))