svn merge ^/trunk/blender -r42466:42495
[blender-staging.git] / source / blender / windowmanager / intern / wm_gesture.c
index 56f8909ca8f59c91a5b77ceaedba14719febb5e2..6940764c6ad51b657e736f7966c2d59ef53db582 100644 (file)
@@ -124,14 +124,13 @@ void WM_gestures_remove(bContext *C)
 
 
 /* tweak and line gestures */
-#define TWEAK_THRESHOLD                10
 int wm_gesture_evaluate(wmGesture *gesture)
 {
        if(gesture->type==WM_GESTURE_TWEAK) {
                rcti *rect= gesture->customdata;
                int dx= rect->xmax - rect->xmin;
                int dy= rect->ymax - rect->ymin;
-               if(ABS(dx)+ABS(dy) > TWEAK_THRESHOLD) {
+               if(ABS(dx)+ABS(dy) > U.tweak_threshold) {
                        int theta= (int)floor(4.0f*atan2f((float)dy, (float)dx)/(float)M_PI + 0.5f);
                        int val= EVT_GESTURE_W;