Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2013-03-22 07:25:31 +0400
committerJoshua Leung <aligorith@gmail.com>2013-03-22 07:25:31 +0400
commitb5b83ce60131c624e757b54f43bb035486ea117d (patch)
tree355d26fc4f04bea64dbc7d84a8ffa6c0907c86dd /source/blender/editors/space_graph
parent48b50ec154ebbc838c36ccaf37e6c7ba65c47da3 (diff)
Tweak to previous commit - make range check less strict so that indicators don't
flicker off so easily when target moves off screen
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c
index 4010c04c02c..bdf93b98f22 100644
--- a/source/blender/editors/space_graph/graph_draw.c
+++ b/source/blender/editors/space_graph/graph_draw.c
@@ -824,7 +824,7 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
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 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
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 @@ static void graph_draw_driver_debug(bAnimContext *ac, ID *id, FCurve *fcu)
/* y-axis lookup */
co[1] = y;
- co[0] = v2d->cur.xmin;
+ co[0] = v2d->cur.xmin - 1.0f;
glVertex2fv(co);
co[0] = x;