Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1283:a6aba785656e
Delete the whole tween when the key frame is covered.
author | wycc |
---|---|
date | Fri, 14 Jan 2011 00:39:21 +0800 |
parents | f7395e788aaf |
children | cbcb91b196fa |
comparison
equal
deleted
inserted
replaced
1282:1ac921a6bd9a | 1283:a6aba785656e |
---|---|
317 try: | 317 try: |
318 start, end, tween_type = frameline.get_frame_block(last_rm) | 318 start, end, tween_type = frameline.get_frame_block(last_rm) |
319 except ValueError: # last removed frame is not in any tween | 319 except ValueError: # last removed frame is not in any tween |
320 pass | 320 pass |
321 else: | 321 else: |
322 if start >= frame_idx and end > last_rm: | 322 if start >= frame_idx and start > last_rm: |
323 # Left key frame of the tween was removed, but not right one. | 323 # Left key frame of the tween was removed, but not right one. |
324 frameline.untween(start) | 324 frameline.untween(start) |
325 frameline.unmark_keyframe(end) | 325 frameline.unmark_keyframe(end) |
326 pass | 326 pass |
327 pass | 327 pass |