Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-06 06:45:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-06 06:54:05 +0300
commit9161993e0214c1d4c44db1a26e251d9d4d3008b2 (patch)
tree6c0d95d242111ac56ad1bdd3ae3e4e269eeea4ee /source/blender/editors/space_sequencer/sequencer_select.c
parent0e590f90784a4c7b2f427ba133c0b0f749d4d6b4 (diff)
Sequencer: use pass-through for preview select
Needed for select-drag action as done in the 3D view and UV editor.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_select.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_select.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index aa6599a7c53..c7d97ea16a7 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -801,6 +801,16 @@ static int sequencer_select_exec(bContext *C, wmOperator *op)
return ret_value;
}
+static int sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
+{
+ const int retval = WM_generic_select_invoke(C, op, event);
+ ARegion *region = CTX_wm_region(C);
+ if (region && (region->regiontype == RGN_TYPE_PREVIEW)) {
+ return WM_operator_flag_only_pass_through_on_press(retval, event);
+ }
+ return retval;
+}
+
void SEQUENCER_OT_select(wmOperatorType *ot)
{
PropertyRNA *prop;
@@ -812,7 +822,7 @@ void SEQUENCER_OT_select(wmOperatorType *ot)
/* Api callbacks. */
ot->exec = sequencer_select_exec;
- ot->invoke = WM_generic_select_invoke;
+ ot->invoke = sequencer_select_invoke;
ot->modal = WM_generic_select_modal;
ot->poll = ED_operator_sequencer_active;