# HG changeset patch # User Thinker K.F. Li # Date 1294631113 -28800 # Node ID 2febe4a301fa2e91aa5959ec56355bcf1225ef82 # Parent b5cceb2b87bb7dbca044ee08343c54c920842566 fix bug of changing tween type diff -r b5cceb2b87bb -r 2febe4a301fa pyink/MBScene.py --- 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