diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-03 12:31:18 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2022-04-11 01:30:30 +0300 |
commit | b562bb8ed4746e0150b6c2c9282bb36194c09e82 (patch) | |
tree | 6bacb9b6f3aeb1e3be4c7a5202503f5e0e3a14c5 /source/blender/editors/space_clip/clip_ops.c | |
parent | 6a7c0c2740691c7918c131765ef7d3bf8491e785 (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_clip/clip_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c index 311f3719864..e61c264ca06 100644 --- a/source/blender/editors/space_clip/clip_ops.c +++ b/source/blender/editors/space_clip/clip_ops.c @@ -1779,7 +1779,8 @@ static int clip_set_2d_cursor_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_SPACE | ND_SPACE_CLIP, NULL); - return OPERATOR_FINISHED; + /* Use pass-through to allow click-drag to transform the cursor. */ + return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; } static int clip_set_2d_cursor_invoke(bContext *C, wmOperator *op, const wmEvent *event) |