diff 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
line wrap: on
line diff
--- a/pyink/frameline.py	Mon Jan 03 12:23:36 2011 +0800
+++ b/pyink/frameline.py	Mon Jan 03 13:51:31 2011 +0800
@@ -716,14 +716,16 @@
             if key.right_tween:
 		right_key = self._keys[key_pos]
                 right_key.left_tween = False
-                redraw_range = (right_key.idx, idx + 1)
+                redraw_range = (key.idx, right_key.idx + 1)
             else:
                 left_key = self._keys[key_pos - 1]
                 left_key.right_tween = False
-                redraw_range = (idx, left_key.idx + 1)
+                redraw_range = (left_key.idx, key.idx + 1)
                 pass
-                self._draw_frame(i)
-                pass
+	    for i in range(*redraw_range):
+		self._draw_frame(i)
+		pass
+	    pass
         else:
             self._draw_frame(idx)
             pass