comparison pyink/frameline.py @ 1197:8c5492b096f1

Fix bug of changing tween type
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 02 Jan 2011 21:09:35 +0800
parents 0e3a65b7b00c
children 213f03dbfc41
comparison
equal deleted inserted replaced
1196:42f8cee2118b 1197:8c5492b096f1
653 if self._drawing: 653 if self._drawing:
654 self._draw_keyframe(idx) 654 self._draw_keyframe(idx)
655 pass 655 pass
656 pass 656 pass
657 657
658 ## Set the frame @idx as the right of a tween
659 def set_right_tween(self,idx):
660 pos = self._find_keyframe(idx)
661 self._keys[pos].right_tween = TRue
662
663 def remove_frame(self, idx): 658 def remove_frame(self, idx):
664 pos = self._find_keyframe_floor(idx) 659 pos = self._find_keyframe_floor(idx)
665 if pos != -1: 660 if pos != -1:
666 key = self._keys[pos] 661 key = self._keys[pos]
667 if key.idx == idx: 662 if key.idx == idx: