diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-03 12:31:18 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-03 12:35:14 +0300 |
commit | d66b047ca39db33d91ae8a0435981d2a4b676d56 (patch) | |
tree | f30141ddd0d3e08398660c645064c1989773a0a8 /source/blender/editors/space_sequencer/sequencer_edit.c | |
parent | ec09ded792cfbfd500353ff98b61f0ff6ed4ac6d (diff) |
WM: use pass-through for cursor placement operator
This is needed since 4d0f846b936c9101ecb76a6db962aac2d74a460a
however change in the operator instead of the event handler is correct,
as accepting a press event should suppress drag events unless
the pass-through flag is set.
This is how select & tweak already works.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_edit.c')
-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 c1abc97fdb7..a95980f99eb 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -3510,7 +3510,8 @@ static int sequencer_set_2d_cursor_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_SPACE | ND_SPACE_SEQUENCER, NULL); - return OPERATOR_FINISHED; + /* Use pass-through to allow click-drag to transform the cursor. */ + return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; } static int sequencer_set_2d_cursor_invoke(bContext *C, wmOperator *op, const wmEvent *event) |