changeset 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 3a891dccabd8
children e731a0eaa35f
files pyink/frameline.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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)