[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53395] trunk/blender/source/blender/ editors/interface/interface_widgets.c: Finally fixing the issue where the bezier curve drawn while creating a link between two logic bricks doesn 't match the mouse cursor location.

Mitchell Stokes mogurijin at gmail.com
Sat Dec 29 10:44:25 CET 2012


Revision: 53395
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53395
Author:   moguri
Date:     2012-12-29 09:44:19 +0000 (Sat, 29 Dec 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_widgets.c

Modified: trunk/blender/source/blender/editors/interface/interface_widgets.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_widgets.c	2012-12-29 08:46:27 UTC (rev 53394)
+++ trunk/blender/source/blender/editors/interface/interface_widgets.c	2012-12-29 09:44:19 UTC (rev 53395)
@@ -2319,7 +2319,7 @@
 
 		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);




More information about the Bf-blender-cvs mailing list