# HG changeset patch # User Thinker K.F. Li # Date 1294631112 -28800 # Node ID 7f17a7e70d82e2cf6043e8ac9a2710cbcf31cfb6 # Parent 6d4de488389e6a6e04bbf5968120142e2d00f1f4 Integrate MBScene.entrGroup() diff -r 6d4de488389e -r 7f17a7e70d82 pyink/MBScene.py --- 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):