[Bf-blender-cvs] [7655cc45eb9] master: VSE: Fix select strips at current frame feature

Richard Antalik noreply at git.blender.org
Thu May 20 05:09:24 CEST 2021


Commit: 7655cc45eb9256f699d40be105cbb6fe93f2e119
Author: Richard Antalik
Date:   Thu May 20 05:00:13 2021 +0200
Branches: master
https://developer.blender.org/rB7655cc45eb9256f699d40be105cbb6fe93f2e119

VSE: Fix select strips at current frame feature

This feature of `select_side_of_frame` was disabled by removing option
from operator property enum but functional code was never removed.

Add back option to use this feature.

Feature was disabled due to keymap issue. Currently this feature doesn't
have keymap assigned.

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

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

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

diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index 3128ec06b68..e386a48ed7e 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -1186,7 +1186,7 @@ static int sequencer_select_side_of_frame_exec(bContext *C, wmOperator *op)
       case 1:
         test = (timeline_frame <= seq->startdisp);
         break;
-      case 0:
+      case 2:
         test = (timeline_frame <= seq->enddisp) && (timeline_frame >= seq->startdisp);
         break;
     }
@@ -1209,6 +1209,7 @@ void SEQUENCER_OT_select_side_of_frame(wmOperatorType *ot)
   static const EnumPropertyItem sequencer_select_left_right_types[] = {
       {-1, "LEFT", 0, "Left", "Select to the left of the current frame"},
       {1, "RIGHT", 0, "Right", "Select to the right of the current frame"},
+      {2, "CURRENT", 0, "Current frame", "Select intersecting with the current frame"},
       {0, NULL, 0, NULL, NULL},
   };



More information about the Bf-blender-cvs mailing list