Mercurial > MadButterfly
comparison pyink/MBScene.py @ 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 |
comparison
equal
deleted
inserted
replaced
1195:cb2c611d1656 | 1196:42f8cee2118b |
---|---|
721 scene_group.setAttribute('style', 'display: none') | 721 scene_group.setAttribute('style', 'display: none') |
722 pass | 722 pass |
723 elif idx == start_idx: | 723 elif idx == start_idx: |
724 frameline.duplicateGroup.setAttribute("style","display:none") | 724 frameline.duplicateGroup.setAttribute("style","display:none") |
725 scene_node = frameline.get_frame_data(start_idx) | 725 scene_node = frameline.get_frame_data(start_idx) |
726 scene_node.setAttribute("style","") | 726 scene_group_id = scene_node.getAttribute('ref') |
727 scene_group = self.get_node(scene_group_id) | |
728 scene_group.setAttribute("style","") | |
727 elif start_idx <= idx and stop_idx >= idx: | 729 elif start_idx <= idx and stop_idx >= idx: |
728 scene_node = frameline.get_frame_data(start_idx) | 730 scene_node = frameline.get_frame_data(start_idx) |
729 scene_group_id = scene_node.getAttribute('ref') | 731 scene_group_id = scene_node.getAttribute('ref') |
730 scene_group = self.get_node(scene_group_id) | 732 scene_group = self.get_node(scene_group_id) |
731 scene_group.setAttribute("style","display:none") | 733 scene_group.setAttribute("style","display:none") |