diff options
author | Peter Kim <pk15950@gmail.com> | 2021-09-23 05:24:20 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2021-09-23 05:24:20 +0300 |
commit | fa233693733c5efa4c4451cf088acefcef54ca16 (patch) | |
tree | 34bdd9620d436d62502a05c8132a8dd987003276 /source/blender/editors/space_view3d/view3d_select.c | |
parent | 1ef02d8f4b2a40884170c98cc78bebc28de77259 (diff) | |
parent | 6e77afe6ec7b6a73f218f1fef264758abcbc778a (diff) |
Merge branch 'master' into xr-controller-support
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_select.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 9d72a05d07c..bca4f8b4857 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1438,7 +1438,7 @@ void VIEW3D_OT_select_lasso(wmOperatorType *ot) ot->cancel = WM_gesture_lasso_cancel; /* flags */ - ot->flag = OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO | OPTYPE_DEPENDS_ON_CURSOR; /* properties */ WM_operator_properties_gesture_lasso(ot); @@ -2813,7 +2813,9 @@ static int view3d_select_invoke(bContext *C, wmOperator *op, const wmEvent *even { RNA_int_set_array(op->ptr, "location", event->mval); - return view3d_select_exec(C, op); + const int retval = view3d_select_exec(C, op); + + return WM_operator_flag_only_pass_through_on_press(retval, event); } static int view3d_select_invoke_3d(bContext *C, wmOperator *op, const wmEvent *event) |