From d66b047ca39db33d91ae8a0435981d2a4b676d56 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Mar 2022 20:31:18 +1100 Subject: 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. --- source/blender/editors/space_view3d/view3d_edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d/view3d_edit.c') diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 5adce170e06..b4cf08f69fe 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -1063,7 +1063,8 @@ static int view3d_cursor3d_invoke(bContext *C, wmOperator *op, const wmEvent *ev const enum eV3DCursorOrient orientation = RNA_enum_get(op->ptr, "orientation"); ED_view3d_cursor3d_update(C, event->mval, use_depth, orientation); - return OPERATOR_FINISHED; + /* Use pass-through to allow click-drag to transform the cursor. */ + return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; } void VIEW3D_OT_cursor3d(wmOperatorType *ot) -- cgit v1.2.3