diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-07 00:36:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-07 00:36:28 +0400 |
commit | df321650026f439b4133fd157f113ed8fd2d95ab (patch) | |
tree | 18dce71a26516f00d2553bad1d05f59a6c65fa62 /source/blender | |
parent | 9695a50ec4ecf0168746238d656c9d6ebfd2a2b5 (diff) |
code cleanup: use more standard names for userpref ui functions was using `context` for style vars.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index ece46e33763..181456c6f4e 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -635,12 +635,14 @@ static void rna_def_userdef_theme_ui_font_style(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Shadow Y Offset", "Shadow offset in pixels"); RNA_def_property_update(prop, 0, "rna_userdef_update"); - prop = RNA_def_property(srna, "shadowalpha", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "shadow_alpha", PROP_FLOAT, PROP_NONE); + RNA_def_property_float_sdna(prop, NULL, "shadowalpha"); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_text(prop, "Shadow Alpha", ""); RNA_def_property_update(prop, 0, "rna_userdef_update"); - prop = RNA_def_property(srna, "shadowcolor", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "shadow_value", PROP_FLOAT, PROP_NONE); + RNA_def_property_float_sdna(prop, NULL, "shadowcolor"); RNA_def_property_range(prop, 0.0f, 1.0f); RNA_def_property_ui_text(prop, "Shadow Brightness", "Shadow color in gray value"); RNA_def_property_update(prop, 0, "rna_userdef_update"); |