comparison pyink/domview.py @ 1282:1ac921a6bd9a

When we delete frame in tween, we should adjust the end only. If we delete the first frame, the whole scene is deleted.
author wycc
date Fri, 14 Jan 2011 00:36:50 +0800
parents 434f588fcde4
children cbcb91b196fa
comparison
equal deleted inserted replaced
1281:e12472f8eef3 1282:1ac921a6bd9a
704 start, end, tween_type = \ 704 start, end, tween_type = \
705 self.parse_one_scene(scene_node) 705 self.parse_one_scene(scene_node)
706 706
707 if end < frame_idx: 707 if end < frame_idx:
708 continue 708 continue
709 709
710 if start > last_rm: # this scene is at right side 710 if start > last_rm: # this scene is at right side
711 self.chg_scene_node(scene_node, 711 self.chg_scene_node(scene_node,
712 start=(start - num), 712 start=(start - num),
713 end=(end - num)) 713 end=(end - num))
714 elif start >= frame_idx:
715 self.rm_scene_node_n_group(scene_node)
716 pass
714 else: # this scene is covered by removing range 717 else: # this scene is covered by removing range
715 self.rm_scene_node_n_group(scene_node) 718 self.chg_scene_node(scene_node,
719 start=start,
720 end=(end - num))
716 pass 721 pass
717 pass 722 pass
718 pass 723 pass
719 724
720 def get_max_frame(self): 725 def get_max_frame(self):