# HG changeset patch # User wycc # Date 1294936610 -28800 # Node ID 1ac921a6bd9a0ca86b4a29abb53024f045fc896a # Parent e12472f8eef33579471c4c9367d012953da041e3 When we delete frame in tween, we should adjust the end only. If we delete the first frame, the whole scene is deleted. diff -r e12472f8eef3 -r 1ac921a6bd9a pyink/domview.py --- a/pyink/domview.py Fri Jan 14 00:02:11 2011 +0800 +++ b/pyink/domview.py Fri Jan 14 00:36:50 2011 +0800 @@ -706,13 +706,18 @@ if end < frame_idx: continue - + if start > last_rm: # this scene is at right side self.chg_scene_node(scene_node, start=(start - num), end=(end - num)) + elif start >= frame_idx: + self.rm_scene_node_n_group(scene_node) + pass else: # this scene is covered by removing range - self.rm_scene_node_n_group(scene_node) + self.chg_scene_node(scene_node, + start=start, + end=(end - num)) pass pass pass