diff options
author | Ton Roosendaal <ton@blender.org> | 2005-08-14 14:31:14 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-08-14 14:31:14 +0400 |
commit | e173de2462e6e43747cc223efd6f7f46c56e0aa8 (patch) | |
tree | 143795fdbbf0378a6c726cab20f7d01873440f5b /source/blender/src/header_seq.c | |
parent | 0721727887f4ae3e34bf7d37b63be0d8e10bf07d (diff) |
Patch provided by Matt Ebb, cut sequence strips (patch tracker).
There were a couple of issues with the implementation:
- there was no proper test if selected strips would be cut or not
- cutting meta strips could go very wrong... for example when the cut
of meta was in an internal gap. With meta's being recursive, and too
complex, I've disabled Meta-cutting
- added an OK menu for hotkey K
- added warnings when no cut was done
This is the first time in 6 years I do work in sequencer... man, this has
grown into a messy bizz! Like sequence variables... using names like:
start, startdisp, startstill, startoffs... totally confusing here. Could
use giant cleanup! Implementation was weak from scratch though, Mea Culpa!
Diffstat (limited to 'source/blender/src/header_seq.c')
-rw-r--r-- | source/blender/src/header_seq.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/header_seq.c b/source/blender/src/header_seq.c index b38aba31a8e..cd65317145b 100644 --- a/source/blender/src/header_seq.c +++ b/source/blender/src/header_seq.c @@ -325,7 +325,10 @@ static void do_seq_editmenu(void *arg, int event) break; case 12: /* Snap to Current Frame */ seq_snap(event); - break; + break; + case 13: /* Cut at Current Frame */ + seq_cut(CFRA); + break; } } @@ -346,6 +349,10 @@ static uiBlock *seq_editmenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Snap to Current Frame|Shift S, 1", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 12, ""); uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); + + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Cut at Current Frame|K", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, ""); + + uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Duplicate|Shift D", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Delete|X", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, ""); |