Mercurial > MadButterfly
changeset 1238:2febe4a301fa
fix bug of changing tween type
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 11:45:13 +0800 |
parents | b5cceb2b87bb |
children | 447cd3359cf2 |
files | pyink/MBScene.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/MBScene.py Mon Jan 10 11:45:13 2011 +0800 +++ b/pyink/MBScene.py Mon Jan 10 11:45:13 2011 +0800 @@ -1066,7 +1066,9 @@ if tween_type is None: tween_type = old_tween_type pass - self._fl_mgr.tween(layer_idx, start, end, tween_type) + + tween_len = end - start + 1 + self._fl_mgr.tween(layer_idx, start, tween_len, tween_type) pass def rm_key_n_tween(self, layer_idx, key_frame_idx): @@ -1570,7 +1572,7 @@ self._dom.get_left_key(layer_idx, frame_idx) if end >= frame_idx and start != end: # Length of tween > 1 and cover this frame - self._dom.chg_tween(tween_type) + self._dom.chg_tween(layer_idx, start, tween_type=tween_type) pass pass