[Bf-blender-cvs] [a2203a27d92] master: Fix T90356: Frame selected includes active strip

Richard Antalik noreply at git.blender.org
Mon Aug 2 18:51:35 CEST 2021


Commit: a2203a27d9298f7e51948e825e6aea992b3ac5b2
Author: Richard Antalik
Date:   Mon Aug 2 18:43:16 2021 +0200
Branches: master
https://developer.blender.org/rBa2203a27d9298f7e51948e825e6aea992b3ac5b2

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.

===================================================================

M	source/blender/editors/space_sequencer/sequencer_view.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/sequencer_view.c b/source/blender/editors/space_sequencer/sequencer_view.c
index 337ac2e0009..c5385e24d2c 100644
--- a/source/blender/editors/space_sequencer/sequencer_view.c
+++ b/source/blender/editors/space_sequencer/sequencer_view.c
@@ -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);



More information about the Bf-blender-cvs mailing list