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:
authorPablo Dobarro <pablodp606@gmail.com>2020-10-20 23:32:56 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-10-20 23:33:26 +0300
commitcf8aa209678c4b35ed18c9d385d5346d400fe672 (patch)
tree6878636a6cfa79f7bea695b3737e10219011af71
parent17cb2a6da0c88eb509448447e10bc73a38398895 (diff)
Fix error in the last commit
I accidentally commited a file without saving it
-rw-r--r--source/blender/windowmanager/intern/wm_gesture_ops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture_ops.c b/source/blender/windowmanager/intern/wm_gesture_ops.c
index fe21935ec88..faafd6c8235 100644
--- a/source/blender/windowmanager/intern/wm_gesture_ops.c
+++ b/source/blender/windowmanager/intern/wm_gesture_ops.c
@@ -29,7 +29,6 @@
#include "MEM_guardedalloc.h"
-#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_math.h"
@@ -47,6 +46,8 @@
#include "ED_screen.h"
#include "ED_select_utils.h"
+#include "UI_interface.h"
+
#include "RNA_access.h"
#include "RNA_define.h"
@@ -695,7 +696,7 @@ int WM_gesture_lasso_modal(bContext *C, wmOperator *op, const wmEvent *event)
}
/* make a simple distance check to get a smoother lasso
* add only when at least 2 pixels between this and previous location */
- else if ((x * x + y * y) > (2 * UI_DPI_FAC) ^ 2) {
+ else if ((x * x + y * y) > pow2f(2.0f * UI_DPI_FAC)) {
lasso += 2;
lasso[0] = event->x - gesture->winrct.xmin;
lasso[1] = event->y - gesture->winrct.ymin;