diff options
author | Alexander Romanov <a.romanov@blend4web.com> | 2017-03-23 16:36:28 +0300 |
---|---|---|
committer | Alexander Romanov <a.romanov@blend4web.com> | 2017-03-23 16:36:28 +0300 |
commit | f98d9baea9e8a928fdd5cec6c2add9b9ef50cf23 (patch) | |
tree | f3f3f3be2571d530497850b9196e0c23ff3e8093 /source/blender/windowmanager/intern/wm_gesture.c | |
parent | 0b9041905faff61db41ebc6efa2d653d17b46d30 (diff) |
Revert own previous commit, the bug is already fixed a fiew commits before. Sorry for the noise.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index b9f5a43e3e9..d4bbc4c7a61 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -414,14 +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); - numverts = gt->points; - if (gt->type == WM_GESTURE_LASSO) { - numverts++; - } - - if (numverts <= 1) - return; - immBindBuiltinProgram(GPU_SHADER_2D_LINE_DASHED_COLOR); immUniform4f("color1", 0.4f, 0.4f, 0.4f, 1.0f); |