diff options
author | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2018-04-10 22:03:26 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2018-04-10 22:38:40 +0900 |
commit | 5351070a4d8d4e114823296bed190f079e865d82 (patch) | |
tree | b1e155f3d3cb278a0e4120b5523cc49be0cd314d | |
parent | 503bb0c8f9e9ccdf3e5e833af814d129c9b34c2f (diff) | |
download | efl-5351070a4d8d4e114823296bed190f079e865d82.tar.gz |
efl_canvas_animation_player: Reset map after animation is finished
Previously, beginning state of animation is applied after animation is
finished if final_state_keep_get() is false.
Now, map is reset (no animation is applied) after animation is finished
if final_state_keep_get() is false.
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_animation_player.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_animation_player.c b/src/lib/evas/canvas/efl_canvas_animation_player.c index 1117c495ab..edc9bd1170 100644 --- a/src/lib/evas/canvas/efl_canvas_animation_player.c +++ b/src/lib/evas/canvas/efl_canvas_animation_player.c @@ -213,19 +213,21 @@ _efl_canvas_animation_player_efl_player_stop(Eo *eo_obj, (!(efl_animation_repeat_count_get(anim) & 1))) { pd->progress = 1.0; + efl_animation_apply(anim, pd->progress, + efl_animation_player_target_get(eo_obj)); } else { pd->progress = 0.0; + efl_gfx_map_reset(efl_animation_player_target_get(eo_obj)); } + efl_event_callback_call(eo_obj, EFL_ANIMATION_PLAYER_EVENT_ENDED, NULL); } else { pd->progress = 0.0; + efl_gfx_map_reset(efl_animation_player_target_get(eo_obj)); } - efl_animation_apply(anim, pd->progress, efl_animation_player_target_get(eo_obj)); - if (play) - efl_event_callback_call(eo_obj, EFL_ANIMATION_PLAYER_EVENT_ENDED, NULL); if (pd->auto_del) efl_del(eo_obj); } |