[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55490] trunk/blender/source/blender/ editors/space_graph/graph_draw.c: Tweak to previous commit - make range check less strict so that indicators don 't
Joshua Leung
aligorith at gmail.com
Fri Mar 22 04:25:33 CET 2013
Revision: 55490
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55490
Author: aligorith
Date: 2013-03-22 03:25:31 +0000 (Fri, 22 Mar 2013)
Log Message:
-----------
Tweak to previous commit - make range check less strict so that indicators don't
flicker off so easily when target moves off screen
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_graph/graph_draw.c
Modified: trunk/blender/source/blender/editors/space_graph/graph_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_draw.c 2013-03-22 02:28:55 UTC (rev 55489)
+++ trunk/blender/source/blender/editors/space_graph/graph_draw.c 2013-03-22 03:25:31 UTC (rev 55490)
@@ -824,7 +824,7 @@
float y = fcu->curval * unitfac;
/* only draw indicators if the point is in range*/
- if (IN_RANGE(x, v2d->cur.xmin, v2d->cur.xmax)) {
+ if (x >= v2d->cur.xmin) {
float co[2];
/* draw dotted lines leading towards this point from both axes ....... */
@@ -836,7 +836,7 @@
co[0] = x;
if (y >= v2d->cur.ymin) {
- co[1] = v2d->cur.ymin;
+ co[1] = v2d->cur.ymin - 1.0f;
glVertex2fv(co);
co[1] = y;
@@ -846,7 +846,7 @@
/* y-axis lookup */
co[1] = y;
- co[0] = v2d->cur.xmin;
+ co[0] = v2d->cur.xmin - 1.0f;
glVertex2fv(co);
co[0] = x;
More information about the Bf-blender-cvs
mailing list