diff pyink/MBScene.py @ 1155:5db4d769387c

Show the frame when we select the keyframe. The duplicated group must be shown only in the tweened frame
author wycc
date Mon, 27 Dec 2010 22:54:37 +0800
parents 71c72e8d6755
children 3a891dccabd8
line wrap: on
line diff
--- a/pyink/MBScene.py	Mon Dec 27 17:05:25 2010 +0800
+++ b/pyink/MBScene.py	Mon Dec 27 22:54:37 2010 +0800
@@ -590,6 +590,10 @@
 		    else:
 			scene_group.setAttribute('style', 'display: none')
 			pass
+		elif idx == start_idx:
+		    layer.duplicateGroup.setAttribute("style","display:none")
+		    scene_group = layer.get_frame_data(start_idx)
+		    scene_group.setAttribute("style","")
 		elif start_idx <= idx and stop_idx >= idx:
 		    scene_group = layer.get_frame_data(start_idx)
 		    scene_group.setAttribute("style","display:none")