[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28915] trunk/blender/source/blender/ editors/space_graph/graph_select.c: Graph Editor Selection Fix for Durian:

Joshua Leung aligorith at gmail.com
Sat May 22 06:54:34 CEST 2010

Revision: 28915
Author:   aligorith
Date:     2010-05-22 06:54:34 +0200 (Sat, 22 May 2010)

Log Message:
Graph Editor Selection Fix for Durian:

Animators were having trouble selecting keyframes and their handles when zoomed in extremely. This commit seems to fix these issues, which appear to have resulted from some overflowing ints, which gave out-of-view handles priority quite often.

Modified Paths:

Modified: trunk/blender/source/blender/editors/space_graph/graph_select.c
--- trunk/blender/source/blender/editors/space_graph/graph_select.c	2010-05-21 22:01:47 UTC (rev 28914)
+++ trunk/blender/source/blender/editors/space_graph/graph_select.c	2010-05-22 04:54:34 UTC (rev 28915)
@@ -780,7 +780,7 @@
 		 * 	needed to access the relevant vertex coordinates in the 3x3 
 		 * 	'vec' matrix
-		UI_view2d_to_region_no_clip(v2d, bezt->vec[hpoint+1][0], bezt->vec[hpoint+1][1], &screen_co[0], &screen_co[1]);
+		UI_view2d_view_to_region(v2d, bezt->vec[hpoint+1][0], bezt->vec[hpoint+1][1], &screen_co[0], &screen_co[1]);
 		/* check if distance from mouse cursor to vert in screen space is within tolerance */
 			// XXX: inlined distance calculation, since we cannot do this on ints using the math lib...

More information about the Bf-blender-cvs mailing list