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
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-03 07:59:20 +0300
committerCampbell Barton <campbell@blender.org>2022-03-03 08:07:18 +0300
commit4d0f846b936c9101ecb76a6db962aac2d74a460a (patch)
treeb8160f7a19bae8d8604efb7acee93d753a9051fd /source/blender/windowmanager/intern/wm_gesture_ops.c
parent9d529407dae77efa552aad99fe3a38a78f70b41e (diff)
Event System: use more thoroughly tested logic for click-drag events
No functional changes, largely restoring old logic & removing the need for workarounds. Reverts: - 13b6cec039681db40e677463aa9fdff6d55896aa. - aa71414dfca7f301e101cce3e72551e7529290ea (partially).
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture_ops.c')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture_ops.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture_ops.c b/source/blender/windowmanager/intern/wm_gesture_ops.c
index ce924ef546c..1fdc8bbe2c8 100644
--- a/source/blender/windowmanager/intern/wm_gesture_ops.c
+++ b/source/blender/windowmanager/intern/wm_gesture_ops.c
@@ -162,13 +162,6 @@ static bool gesture_box_apply(bContext *C, wmOperator *op)
int WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
{
- /* FIXME(@campbellbarton): This is a temporary workaround T96120. As events
- * are handled while dragging we should resolve this in a more general way. */
- wmWindowManager *wm = CTX_wm_manager(C);
- if (wm->drags.first) {
- return OPERATOR_PASS_THROUGH;
- }
-
wmWindow *win = CTX_wm_window(C);
const ARegion *region = CTX_wm_region(C);
const bool wait_for_input = !WM_event_is_mouse_drag_or_press(event) &&