Mercurial > MadButterfly
diff pyink/MBScene.py @ 1159:e731a0eaa35f
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.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 28 Dec 2010 13:35:34 +0800 |
parents | 3a891dccabd8 |
children | 1a699dc00fa3 |
line wrap: on
line diff
--- 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)