diff options
author | Peter Schlaile <peter@schlaile.de> | 2008-02-24 15:12:05 +0300 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2008-02-24 15:12:05 +0300 |
commit | f59bbef4b3c83ecd8ce3c9cad3633aaf95a64c69 (patch) | |
tree | 07cb87b24ba5fe1795679f484986891520420400 /source/blender/src/editseq.c | |
parent | d66e9cfdf07d01c35524647d9d48ff931baf34b5 (diff) |
== Sequencer ==
Fixes a lot of small things:
* zoom in/out in preview is more fine grained (use SHIFT)
* zebra scopes don't try to draw the border and fail
* lock/unlock now locks/unlocks all selected strips
* fix redraw problems of panel on lock/unlock
* buttons-panel is redrawn on translate, so that position information is shown
* added lock / hide to Strip-Menu
* fixed small drawing problems in header
TODO: find a good key for lock / unlock (Shift-L | Alt-Shift-L isn't that nice
to press...)
Diffstat (limited to 'source/blender/src/editseq.c')
-rw-r--r-- | source/blender/src/editseq.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c index 9dd6c47c6d6..303cc742769 100644 --- a/source/blender/src/editseq.c +++ b/source/blender/src/editseq.c @@ -896,8 +896,7 @@ void mouse_select_seq(void) recurs_sel_seq(seq); } - allqueue(REDRAWBUTSSCENE, 0); - force_draw(0); + force_draw_plus(SPACE_BUTS, 0); if(get_last_seq()) allqueue(REDRAWIPO, 0); BIF_undo_push("Select Strips, Sequencer"); @@ -3298,7 +3297,7 @@ void transform_seq(int mode, int context) /* warning, drawing should NEVER use WHILE_SEQ, if it does the seq->depth value will be messed up and overlap checks with metastrips will give incorrect results */ - force_draw(0); + force_draw_plus(SPACE_BUTS, 0); } else BIF_wait_for_statechange(); @@ -3678,6 +3677,23 @@ void seq_mute_sel(int mute) { allqueue(REDRAWSEQ, 0); } +void seq_lock_sel(int lock) { + Editing *ed; + Sequence *seq; + + ed= G.scene->ed; + if(!ed) return; + + for(seq= ed->seqbasep->first; seq; seq= seq->next) { + if ((seq->flag & SELECT)) { + if (lock) seq->flag |= SEQ_LOCK; + else seq->flag &= ~SEQ_LOCK; + } + } + BIF_undo_push(lock?"Lock Strips, Sequencer":"Unlock Strips, Sequencer"); + allqueue(REDRAWSEQ, 0); +} + void borderselect_seq(void) { Sequence *seq; |