diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-15 16:17:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-15 16:18:37 +0300 |
commit | 6d71169478d19a709b7bf5e34dfd904ab6591edf (patch) | |
tree | d76a92c09ec507c88b63bbfb8d175ba47c2322fc /source/blender/windowmanager/intern/wm_gesture.c | |
parent | d78b1147bed6a56dc8fbf6bc46e2e29cb7456c2e (diff) |
De-duplictae fix for lasso with Dalai
Git silently merged our both fixes together. Sure thing it's double safe this way, but cmon.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index da490f793bb..d4bbc4c7a61 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -414,10 +414,6 @@ static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt, bool filled) unsigned pos = add_attrib(format, "pos", COMP_F32, 2, KEEP_FLOAT); unsigned line_origin = add_attrib(format, "line_origin", COMP_F32, 2, KEEP_FLOAT); - if (gt->points + (gt->type == WM_GESTURE_LASSO ? 1 : 0) < 2) { - return; - } - immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_COLOR); immUniform4f("color1", 0.4f, 0.4f, 0.4f, 1.0f); |