Mercurial > MadButterfly
changeset 1533:82d3a6b5d1c4
Clear selection before running timeline
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 30 Sep 2011 12:53:19 +0800 |
parents | 4a92b639a1cd |
children | 199ba528fd4a |
files | pyink/MBScene.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/MBScene.py Fri Sep 30 12:31:33 2011 +0800 +++ b/pyink/MBScene.py Fri Sep 30 12:53:19 2011 +0800 @@ -311,7 +311,9 @@ """ Execute the current animation till the last frame. """ - if self.btnRun.get_label() == "Run": + if self.btnRun.get_label() == "Run": # Go running + self.desktop.selection.clear() + # # Make dup groups empty. # It forces TweenObject to re-generate content from scratch. @@ -327,7 +329,7 @@ self.btnRun.set_label("Stop") tmout = 1000 / self.framerate self.last_update = glib.timeout_add(tmout, self.doRunNext) - else: + else: # Stop running self.btnRun.set_label("Run") glib.source_remove(self.last_update) pass