forked from bartvdbraak/blender
patch [#37217] Make WM_gesture_lines draw the lasso unfilled. (Adding reroute nodes, cutting node links)
by Henrik Aarnio (hjaarnio)
This commit is contained in:
parent
22396540d7
commit
41587de016
@ -293,12 +293,14 @@ static void draw_filled_lasso(wmWindow *win, wmGesture *gt)
|
||||
}
|
||||
|
||||
|
||||
static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt)
|
||||
static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt, bool filled)
|
||||
{
|
||||
short *lasso = (short *)gt->customdata;
|
||||
int i;
|
||||
|
||||
draw_filled_lasso(win, gt);
|
||||
if (filled) {
|
||||
draw_filled_lasso(win, gt);
|
||||
}
|
||||
|
||||
glEnable(GL_LINE_STIPPLE);
|
||||
glColor3ub(96, 96, 96);
|
||||
@ -365,9 +367,9 @@ void wm_gesture_draw(wmWindow *win)
|
||||
wm_gesture_draw_cross(win, gt);
|
||||
}
|
||||
else if (gt->type == WM_GESTURE_LINES)
|
||||
wm_gesture_draw_lasso(win, gt);
|
||||
wm_gesture_draw_lasso(win, gt, false);
|
||||
else if (gt->type == WM_GESTURE_LASSO)
|
||||
wm_gesture_draw_lasso(win, gt);
|
||||
wm_gesture_draw_lasso(win, gt, true);
|
||||
else if (gt->type == WM_GESTURE_STRAIGHTLINE)
|
||||
wm_gesture_draw_line(gt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user