diff 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
line wrap: on
line diff
--- a/pyink/frameline.py	Mon Dec 27 23:01:48 2010 +0800
+++ b/pyink/frameline.py	Tue Dec 28 13:35:27 2010 +0800
@@ -370,6 +370,12 @@
 		self._draw_tween(first_tween_key.idx, last_tween_key.idx,
 				 first_tween_key.right_tween_type)
 		last_tween_key = self._keys[last_tween_pos]
+		key_pos = last_tween_pos + 1
+		try:
+		    key = self._keys[key_pos]
+		except:
+		    key = keyframe(self._num_frames)
+		    pass
                 i = last_tween_key.idx + 1
 	    else:
                 self._draw_normal_frame(i)