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 <ideasman42@gmail.com>2019-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/windowmanager/intern/wm_gesture.c
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c
index ea92409d528..11f9ef917fd 100644
--- a/source/blender/windowmanager/intern/wm_gesture.c
+++ b/source/blender/windowmanager/intern/wm_gesture.c
@@ -165,22 +165,30 @@ int wm_gesture_evaluate(wmGesture *gesture, const wmEvent *event)
#if 0
/* debug */
- if (val == 1)
+ if (val == 1) {
printf("tweak north\n");
- if (val == 2)
+ }
+ if (val == 2) {
printf("tweak north-east\n");
- if (val == 3)
+ }
+ if (val == 3) {
printf("tweak east\n");
- if (val == 4)
+ }
+ if (val == 4) {
printf("tweak south-east\n");
- if (val == 5)
+ }
+ if (val == 5) {
printf("tweak south\n");
- if (val == 6)
+ }
+ if (val == 6) {
printf("tweak south-west\n");
- if (val == 7)
+ }
+ if (val == 7) {
printf("tweak west\n");
- if (val == 8)
+ }
+ if (val == 8) {
printf("tweak north-west\n");
+ }
#endif
return val;
}
@@ -480,8 +488,11 @@ void wm_gesture_draw(wmWindow *win)
if (gt->type == WM_GESTURE_RECT) {
wm_gesture_draw_rect(gt);
}
- // else if (gt->type == WM_GESTURE_TWEAK)
- // wm_gesture_draw_line(gt);
+#if 0
+ else if (gt->type == WM_GESTURE_TWEAK) {
+ wm_gesture_draw_line(gt);
+ }
+#endif
else if (gt->type == WM_GESTURE_CIRCLE) {
wm_gesture_draw_circle(gt);
}