From bbeab932b3530c2f19263d8c6adf7866920668c3 Mon Sep 17 00:00:00 2001 From: Sam Fries Date: Tue, 7 Apr 2015 14:34:15 -0700 Subject: [PATCH] Fix for #1195 --- Packages/vcs/Lib/configurator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Packages/vcs/Lib/configurator.py b/Packages/vcs/Lib/configurator.py index da5d4fea78..c53e8b3dd0 100644 --- a/Packages/vcs/Lib/configurator.py +++ b/Packages/vcs/Lib/configurator.py @@ -520,9 +520,13 @@ def get_frame(): self.initialized = True def step_forward(self, state): + if self.animation_timer is not None: + self.stop_animating() self.canvas.animate.draw_frame((self.canvas.animate.frame_num + 1) % self.canvas.animate.number_of_frames(), allow_static = False, render_offscreen = False) def step_back(self, state): + if self.animation_timer is not None: + self.stop_animating() self.canvas.animate.draw_frame((self.canvas.animate.frame_num - 1) % self.canvas.animate.number_of_frames(), allow_static = False, render_offscreen = False) def save_animation_press(self, state): @@ -606,8 +610,11 @@ def stop_animating(self): if self.animation_timer is not None: t, self.animation_timer = self.animation_timer, None self.interactor.DestroyTimer(t) + self.anim_button.set_state(0) def set_animation_frame(self, value): + if self.animation_timer is not None: + self.stop_animating() value = int(value) self.canvas.animate.draw_frame(value, allow_static=False, render_offscreen=False) return value