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>2012-03-22 16:19:31 +0400
committerJoshua Leung <aligorith@gmail.com>2012-03-22 16:19:31 +0400
commit5cf739c2dad6002f4716f0ccf514bd2544e0698d (patch)
treebaa3810878d738ce934760994c1bf22ccddcd3ac /source/blender/editors/space_graph/graph_draw.c
parentdb37011930f2d59ba85d91bec43ff420e451df9b (diff)
Quick Mango request: Adjustable contrast/intensity for unselected F-Curves in
Graph Editor Under User Preferences -> Editing, there's a new setting "F-Curve Visibility" which controls the how much F-Curves blend in with the background colour. Increasing this value makes F-Curves stand out more, at the expense of making it less obvious which F-Curve is active.
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r--source/blender/editors/space_graph/graph_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c
index 8af16bd1aec..fd0fa538d81 100644
--- a/source/blender/editors/space_graph/graph_draw.c
+++ b/source/blender/editors/space_graph/graph_draw.c
@@ -48,6 +48,7 @@
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
+#include "DNA_userdef_types.h"
#include "BKE_context.h"
#include "BKE_curve.h"
@@ -72,7 +73,7 @@
* drawing components for some F-Curve (fcu)
* - selected F-Curves should be more visible than partially visible ones
*/
-#define drawFCurveFade(fcu) ( ((fcu)->flag & FCURVE_SELECTED)? 1.0f : 0.25f )
+#define drawFCurveFade(fcu) ( ((fcu)->flag & FCURVE_SELECTED)? 1.0f : U.fcu_inactive_alpha )
/* set the color for some point from some value given packed into an int
* - intV: integer value containing color info packed into an int