comparison pyink/frameline.py @ 1200:213f03dbfc41

Fix issue of removing a scene
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 03 Jan 2011 13:51:31 +0800
parents 8c5492b096f1
children 1d476b35dc79
comparison
equal deleted inserted replaced
1199:25e1579ed3d1 1200:213f03dbfc41
714 # tween in one side 714 # tween in one side
715 # 715 #
716 if key.right_tween: 716 if key.right_tween:
717 right_key = self._keys[key_pos] 717 right_key = self._keys[key_pos]
718 right_key.left_tween = False 718 right_key.left_tween = False
719 redraw_range = (right_key.idx, idx + 1) 719 redraw_range = (key.idx, right_key.idx + 1)
720 else: 720 else:
721 left_key = self._keys[key_pos - 1] 721 left_key = self._keys[key_pos - 1]
722 left_key.right_tween = False 722 left_key.right_tween = False
723 redraw_range = (idx, left_key.idx + 1) 723 redraw_range = (left_key.idx, key.idx + 1)
724 pass 724 pass
725 self._draw_frame(i) 725 for i in range(*redraw_range):
726 pass 726 self._draw_frame(i)
727 pass
728 pass
727 else: 729 else:
728 self._draw_frame(idx) 730 self._draw_frame(idx)
729 pass 731 pass
730 732
731 self._draw_active_frame() 733 self._draw_active_frame()