changeset 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 1c9ef65c74b2
children ad9c44a08645
files pyink/MBScene.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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")