diff options
author | Joshua Leung <aligorith@gmail.com> | 2012-03-22 16:19:31 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2012-03-22 16:19:31 +0400 |
commit | 5cf739c2dad6002f4716f0ccf514bd2544e0698d (patch) | |
tree | baa3810878d738ce934760994c1bf22ccddcd3ac /source/blender/makesrna/intern/rna_userdef.c | |
parent | db37011930f2d59ba85d91bec43ff420e451df9b (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/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index b9bc7311303..dd26df0a10f 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -2644,6 +2644,14 @@ static void rna_def_userdef_edit(BlenderRNA *brna) RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", USER_NONEGFRAMES); RNA_def_property_ui_text(prop, "Allow Negative Frames", "Current frame number can be manually set to a negative value"); + + /* fcurve opacity */ + prop = RNA_def_property(srna, "fcurve_unselected_alpha", PROP_FLOAT, PROP_FACTOR); + RNA_def_property_float_sdna(prop, NULL, "fcu_inactive_alpha"); + RNA_def_property_range(prop, 0.001f, 1.0f); + RNA_def_property_ui_text(prop, "Unselected F-Curve Visibility", + "Amount that unselected F-Curves stand out from the background (Graph Editor)"); + RNA_def_property_update(prop, NC_SPACE|ND_SPACE_GRAPH, NULL); /* grease pencil */ prop = RNA_def_property(srna, "grease_pencil_manhattan_distance", PROP_INT, PROP_NONE); |