Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_gesture.c
| Show First 20 Lines • Show All 441 Lines • ▼ Show 20 Lines | else if (gt->type == WM_GESTURE_LASSO) | ||||
| wm_gesture_draw_lasso(gt, true); | wm_gesture_draw_lasso(gt, true); | ||||
| else if (gt->type == WM_GESTURE_STRAIGHTLINE) | else if (gt->type == WM_GESTURE_STRAIGHTLINE) | ||||
| wm_gesture_draw_line(gt); | wm_gesture_draw_line(gt); | ||||
| } | } | ||||
| } | } | ||||
| void wm_gesture_tag_redraw(bContext *C) | void wm_gesture_tag_redraw(bContext *C) | ||||
| { | { | ||||
| wmWindow *win = CTX_wm_window(C); | |||||
| bScreen *screen = CTX_wm_screen(C); | bScreen *screen = CTX_wm_screen(C); | ||||
| ARegion *ar = CTX_wm_region(C); | |||||
| if (screen) | if (screen) | ||||
| screen->do_draw_gesture = true; | screen->do_draw_gesture = true; | ||||
| wm_tag_redraw_overlay(win, ar); | |||||
| } | } | ||||