diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-07-26 16:49:43 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-07-26 16:49:43 +0400 |
commit | 77e906cbd43accb3de89d0ac922d72e1c154aee9 (patch) | |
tree | 2bbf4b324a41908a9dc75bab9d107d7282e3490a /source/blender/editors | |
parent | 1f65b3b1a8f5ccc54a794ed0d6f8cf2d3e2c5a36 (diff) |
Experimental drawing tweak: make active F-Curve get drawn with thicker
line width
This should help make it stand out better from the background, though
it has the risk that values may not be so clearly picked up visually
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c index b5c253fdbff..ac0455392cc 100644 --- a/source/blender/editors/space_graph/graph_draw.c +++ b/source/blender/editors/space_graph/graph_draw.c @@ -877,6 +877,11 @@ void graph_draw_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar, View2DGri glColor4f(fcu->color[0], fcu->color[1], fcu->color[2], drawFCurveFade(fcu)); } + /* draw active F-Curve thicker than the rest to make it stand out */ + if (fcu->flag & FCURVE_ACTIVE) { + glLineWidth(2.0); + } + /* anti-aliased lines for less jagged appearance */ if ((sipo->flag & SIPO_BEAUTYDRAW_OFF)==0) glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); @@ -898,6 +903,7 @@ void graph_draw_curves (bAnimContext *ac, SpaceIpo *sipo, ARegion *ar, View2DGri /* restore settings */ setlinestyle(0); + glLineWidth(1.0); if ((sipo->flag & SIPO_BEAUTYDRAW_OFF)==0) glDisable(GL_LINE_SMOOTH); glDisable(GL_BLEND); |