From 562cc3c34b371a9d15a59913dab0fd2544ad9948 Mon Sep 17 00:00:00 2001 From: Alex Kucherenko Date: Wed, 14 Dec 2016 22:29:30 +0200 Subject: [PATCH] Update timestep_animate.cpp If you try to call animate(...).clear() on paused animation, next call animate(...).pause() won't work. This happens because clear() doesn't reset paused state for the object. --- timestep/timestep_animate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/timestep/timestep_animate.cpp b/timestep/timestep_animate.cpp index d2b1b8d..4c1384f 100644 --- a/timestep/timestep_animate.cpp +++ b/timestep/timestep_animate.cpp @@ -149,6 +149,7 @@ void view_animation_clear(view_animation *anim) { view_animation_unschedule(anim); anim->elapsed = 0; + anim->is_paused = false; def_animate_remove_from_group(anim->js_anim); LOGFN("end view_animation_clear"); }