Mercurial > MadButterfly
diff pyink/domview_ui.py @ 1247:45e9566ea5c0
Fix bugs of inserting/removing frames.
- tracking layer.scenes when add/remove scene nodes.
- fix buggy add_frame()/rm_frame() of frameline.
- change ID of nodes before inserting when copy nodes from another
group.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 22:15:16 +0800 |
parents | 42c4874c8d1e |
children | 2f9fa5d59e67 |
line wrap: on
line diff
--- a/pyink/domview_ui.py Mon Jan 10 19:44:15 2011 +0800 +++ b/pyink/domview_ui.py Mon Jan 10 22:15:16 2011 +0800 @@ -416,7 +416,7 @@ scene_group = self._dom.add_scene_group(layer_idx) scene_group_id = scene_group.getAttribute('id') - scene_node = self._dom.add_scene_node(key_idx, key_idx) + scene_node = self._dom.add_scene_node(layer_idx, key_idx, key_idx) self._dom.chg_scene_node(scene_node, ref=scene_group_id) self._fl_stack.mark_keyframe(layer_idx, key_idx) @@ -488,7 +488,7 @@ # \ref num frames are removed. # def rm_frames(self, layer_idx, frame_idx, num): - self._fl_stack.insert_frames(layer_idx, frame_idx, num) + self._fl_stack.rm_frames(layer_idx, frame_idx, num) self._dom.rm_frames(layer_idx, frame_idx, num) pass