changeset 1196:42f8cee2118b

Fix the issue that is falut to show first frame of a tween
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 02 Jan 2011 20:51:51 +0800
parents cb2c611d1656
children 8c5492b096f1
files pyink/MBScene.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Sun Jan 02 20:05:05 2011 +0800
+++ b/pyink/MBScene.py	Sun Jan 02 20:51:51 2011 +0800
@@ -723,7 +723,9 @@
 		elif idx == start_idx:
 		    frameline.duplicateGroup.setAttribute("style","display:none")
 		    scene_node = frameline.get_frame_data(start_idx)
-		    scene_node.setAttribute("style","")
+		    scene_group_id = scene_node.getAttribute('ref')
+		    scene_group = self.get_node(scene_group_id)
+		    scene_group.setAttribute("style","")
 		elif start_idx <= idx and stop_idx >= idx:
 		    scene_node = frameline.get_frame_data(start_idx)
 		    scene_group_id = scene_node.getAttribute('ref')