Revision: 38724
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38724
Author: aligorith
Date: 2011-07-26 12:49:43 +0000 (Tue, 26 Jul 2011)
Log Message:
-----------
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
Modified Paths:
--------------
branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
Modified:
branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
2011-07-26 09:19:51 UTC (rev 38723)
+++ branches/soc-2011-pepper/source/blender/editors/space_graph/graph_draw.c
2011-07-26 12:49:43 UTC (rev 38724)
@@ -877,6 +877,11 @@
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 @@
/* restore settings */
setlinestyle(0);
+ glLineWidth(1.0);
if ((sipo->flag & SIPO_BEAUTYDRAW_OFF)==0)
glDisable(GL_LINE_SMOOTH);
glDisable(GL_BLEND);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs