From 7d6ea8cddf326332679255c4b3dfe89cd4617cc2 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 29 Dec 2012 09:44:19 +0000 Subject: [PATCH] Finally fixing the issue where the bezier curve drawn while creating a link between two logic bricks doesn't match the mouse cursor location. The issue was the last line segment for the bezier curve was not getting drawn. This is why the error increased as the curve got longer. --- source/blender/editors/interface/interface_widgets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 7fa5ceb5fe3..eb19812876e 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2319,7 +2319,7 @@ void ui_draw_link_bezier(const rcti *rect) glEnableClientState(GL_VERTEX_ARRAY); glVertexPointer(2, GL_FLOAT, 0, coord_array); - glDrawArrays(GL_LINE_STRIP, 0, LINK_RESOL); + glDrawArrays(GL_LINE_STRIP, 0, LINK_RESOL+1); glDisableClientState(GL_VERTEX_ARRAY); glDisable(GL_BLEND);