[Bf-blender-cvs] [df5a1f2f825] soc-2021-curves: Remove KM_PRESS condition for drag

Dilith Jayakody noreply at git.blender.org
Sun Apr 3 17:34:19 CEST 2022


Commit: df5a1f2f825bf5b13e069cf2431397a8038bee86
Author: Dilith Jayakody
Date:   Thu Mar 24 16:00:26 2022 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBdf5a1f2f825bf5b13e069cf2431397a8038bee86

Remove KM_PRESS condition for drag

===================================================================

M	source/blender/editors/curve/editcurve_pen.c

===================================================================

diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index 954725fff82..a4b258f90a5 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -1529,8 +1529,7 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
 
   if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
     /* Check if dragging */
-    if (!cpd->dragging && WM_event_drag_test(event, event->prev_press_xy) &&
-        event->val == KM_PRESS) {
+    if (!cpd->dragging && WM_event_drag_test(event, event->prev_press_xy)) {
       cpd->dragging = true;
 
       if (cpd->new_point) {



More information about the Bf-blender-cvs mailing list