Fix T90356: Frame selected includes active strip

Don't include active strip in this operator.

This was confusing due to name of operator and inconsistent with other
editors.
This commit is contained in:
Richard Antalik 2021-08-02 18:43:16 +02:00
parent 67d56eb71e
commit a2203a27d9
Notes: blender-bot 2023-02-14 02:30:11 +01:00
Referenced by issue #90356, VSE: "Frame selected" will include the last selected (but currently unselected) strip in its framing
1 changed files with 1 additions and 2 deletions

View File

@ -275,7 +275,6 @@ static int sequencer_view_selected_exec(bContext *C, wmOperator *op)
View2D *v2d = UI_view2d_fromcontext(C);
ARegion *region = CTX_wm_region(C);
Editing *ed = SEQ_editing_get(scene, false);
Sequence *last_seq = SEQ_select_active_get(scene);
Sequence *seq;
rctf cur_new = v2d->cur;
@ -293,7 +292,7 @@ static int sequencer_view_selected_exec(bContext *C, wmOperator *op)
}
for (seq = ed->seqbasep->first; seq; seq = seq->next) {
if ((seq->flag & SELECT) || (seq == last_seq)) {
if ((seq->flag & SELECT)) {
xmin = min_ii(xmin, seq->startdisp);
xmax = max_ii(xmax, seq->enddisp);