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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-29 12:10:02 +0300
committerCampbell Barton <campbell@blender.org>2022-03-29 14:20:38 +0300
commit62c73db734151c1a12ef07d3c8458521f2441e1c (patch)
treecb6f0a34dee91196abd1eb5c2a11b3d5e435b581 /source
parent2aa49107a2fb8e5bd68675a1fab245cb742f0b07 (diff)
Fix T96835: Grease pencil tweak tool selects but doesn't drag
Use the pass-through matching the view3d.select operator.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_select.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index fca4ff84dc5..d962dcdfa10 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -2651,7 +2651,7 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
}
- return OPERATOR_FINISHED;
+ return OPERATOR_PASS_THROUGH | OPERATOR_FINISHED;
}
static int gpencil_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
@@ -2662,7 +2662,9 @@ static int gpencil_select_invoke(bContext *C, wmOperator *op, const wmEvent *eve
RNA_boolean_set(op->ptr, "use_shift_extend", event->modifier & KM_SHIFT);
}
- return gpencil_select_exec(C, op);
+ const int retval = gpencil_select_exec(C, op);
+
+ return WM_operator_flag_only_pass_through_on_press(retval, event);
}
void GPENCIL_OT_select(wmOperatorType *ot)