# HG changeset patch # User Thinker K.F. Li # Date 1293514534 -28800 # Node ID e731a0eaa35f7a0cc812fcb3464cfef2b1f9f7b1 # Parent 1d1f2a1e43f688e6f0009deaf0b20d34b37ca807 Fix issue of chagne tween type when there is more than one tween block. - It always tween first tween block when there is more than one block on a timeline. diff -r 1d1f2a1e43f6 -r e731a0eaa35f pyink/MBScene.py --- a/pyink/MBScene.py Tue Dec 28 13:35:27 2010 +0800 +++ b/pyink/MBScene.py Tue Dec 28 13:35:34 2010 +0800 @@ -917,10 +917,11 @@ if self.last_line == None: return frameline = self.last_line + idx = self.last_frame i = 0 found = -1 for start_idx, stop_idx, tween_type in frameline.get_frame_blocks(): - if start_idx < stop_idx: + if start_idx <= idx and stop_idx >= idx: n = self.tweenTypeSelector.get_active() new_tween_type = MBScene._frameline_tween_types[n] self.last_line.set_tween_type(start_idx, new_tween_type)