changeset 1233:7f17a7e70d82

Integrate MBScene.entrGroup()
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 10 Jan 2011 11:45:12 +0800
parents 6d4de488389e
children 0f597a2073eb
files pyink/MBScene.py
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Mon Jan 10 11:45:12 2011 +0800
+++ b/pyink/MBScene.py	Mon Jan 10 11:45:12 2011 +0800
@@ -1309,14 +1309,8 @@
 	    pass
 	pass
     
-    def enterGroup(self, obj):
-        for l in self._layers:
-	    for s in l.group.childList():
-	        if s.getAttribute('id') == obj.getAttribute("id"):
-		    self.desktop.setCurrentLayer(s.spitem)
-		    pass
-		pass
-	    pass
+    def enterGroup(self, scene_group):
+	self.desktop.setCurrentLayer(scene_group.spitem)
 	pass
     
     def setTweenType(self, tween_type):