Mercurial > MadButterfly
comparison pyink/frameline.py @ 1158:1d1f2a1e43f6
Fix the issue of drawing consquence tween frames
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 28 Dec 2010 13:35:27 +0800 |
parents | 1c9ef65c74b2 |
children | a7faab54e8f8 |
comparison
equal
deleted
inserted
replaced
1157:3a891dccabd8 | 1158:1d1f2a1e43f6 |
---|---|
368 first_tween_key = self._keys[first_tween_pos] | 368 first_tween_key = self._keys[first_tween_pos] |
369 last_tween_key = self._keys[last_tween_pos] | 369 last_tween_key = self._keys[last_tween_pos] |
370 self._draw_tween(first_tween_key.idx, last_tween_key.idx, | 370 self._draw_tween(first_tween_key.idx, last_tween_key.idx, |
371 first_tween_key.right_tween_type) | 371 first_tween_key.right_tween_type) |
372 last_tween_key = self._keys[last_tween_pos] | 372 last_tween_key = self._keys[last_tween_pos] |
373 key_pos = last_tween_pos + 1 | |
374 try: | |
375 key = self._keys[key_pos] | |
376 except: | |
377 key = keyframe(self._num_frames) | |
378 pass | |
373 i = last_tween_key.idx + 1 | 379 i = last_tween_key.idx + 1 |
374 else: | 380 else: |
375 self._draw_normal_frame(i) | 381 self._draw_normal_frame(i) |
376 if key.idx == i: | 382 if key.idx == i: |
377 key_pos = key_pos+1 | 383 key_pos = key_pos+1 |