Mercurial > MadButterfly
diff pyink/MBScene.py @ 1180:bfd7d466a022
Fix yeiling error message when select a scene.
- It is caused by the buggy fixing of changeset #7d700e5f82ba for an
eariler error of frameline.get_frame_block()
- Fix frameline.get_frame_block() with correct logic and fix early
code relied on the buggy fix.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 31 Dec 2010 11:31:18 +0800 |
parents | b65df4f0d30a |
children | f14dbcf19e2b |
line wrap: on
line diff
--- a/pyink/MBScene.py Fri Dec 31 11:10:14 2010 +0800 +++ b/pyink/MBScene.py Fri Dec 31 11:31:18 2010 +0800 @@ -626,12 +626,14 @@ tween_obj_tween_type = \ self._tween_obj_tween_types[tween_type_idx] - next_idx, next_stop_idx, next_tween_type = \ - layer.get_frame_block(stop_idx + 1) - if next_idx == -1: + try: + next_idx, next_stop_idx, next_tween_type = \ + layer.get_frame_block(stop_idx + 1) + except: next_scene_group = scene_group else: next_scene_group = layer.get_frame_data(next_idx) + pass nframes = stop_idx - start_idx + 1 percent = float(idx - start_idx) / nframes