# HG changeset patch # User Thinker K.F. Li # Date 1317358399 -28800 # Node ID 82d3a6b5d1c46b97be6ca7dbff1f7daeea238628 # Parent 4a92b639a1cd2c8d789e7c3e827bee098ae2be0f Clear selection before running timeline diff -r 4a92b639a1cd -r 82d3a6b5d1c4 pyink/MBScene.py --- 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