# HG changeset patch # User Thinker K.F. Li # Date 1317357093 -28800 # Node ID 4a92b639a1cd2c8d789e7c3e827bee098ae2be0f # Parent 5a3597eba722844e2573327792f5fed7c5e84fc4 Clear selection set when switching current scene. To clear selection set after switching away from current to another scene. It avoids Inkscape select on nodes they are not saw after switching. diff -r 5a3597eba722 -r 4a92b639a1cd pyink/MBScene.py --- a/pyink/MBScene.py Wed Sep 28 21:54:39 2011 +0800 +++ b/pyink/MBScene.py Fri Sep 30 12:31:33 2011 +0800 @@ -157,6 +157,7 @@ pass def _enterGroup(self, scene_group): + self.desktop.selection.clear() self.desktop.setCurrentLayer(scene_group.spitem) pass