diff options
author | Ton Roosendaal <ton@blender.org> | 2013-03-27 16:29:00 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-03-27 16:29:00 +0400 |
commit | 79b8d890273c20b6689c6246100ba39a5c2857e3 (patch) | |
tree | 6f3e4ce556547d6b2abd35181cc4c9a6f9df2539 | |
parent | 68d8c6ad3d9aa54219da9bce4abdb4bc424a3154 (diff) |
Tiny fix for sequencer:
"View selected strip(s)" now includes the active strip (which can be deselected
in cases). Less confusing this way, also because active strip is being drawn
very visible.
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index fb372a7b838..d285cd6e6a4 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -2328,6 +2328,7 @@ static int sequencer_view_selected_exec(bContext *C, wmOperator *UNUSED(op)) View2D *v2d = UI_view2d_fromcontext(C); ARegion *ar = CTX_wm_region(C); Editing *ed = BKE_sequencer_editing_get(scene, FALSE); + Sequence *last_seq = BKE_sequencer_active_get(scene); Sequence *seq; rctf cur_new = v2d->cur; @@ -2344,7 +2345,7 @@ static int sequencer_view_selected_exec(bContext *C, wmOperator *UNUSED(op)) return OPERATOR_CANCELLED; for (seq = ed->seqbasep->first; seq; seq = seq->next) { - if (seq->flag & SELECT) { + if ((seq->flag & SELECT) || (seq == last_seq)) { xmin = min_ii(xmin, seq->startdisp); xmax = max_ii(xmax, seq->enddisp); |