diff options
author | Michael Soluyanov <crantisz> | 2020-03-24 15:43:40 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-24 15:49:22 +0300 |
commit | 88adfc7e5467e6f027c2bc59bc8753de04b7cd9d (patch) | |
tree | 71538bb682c44f3cfc2f00cfa743d826aaec0989 | |
parent | 28827b62f7777a51bb4899021b5248486d2a4687 (diff) |
Fix missing grid theme option for Movie Clip Editor
The theme color is used in code, but not exposed in RNA and therefore
there's no button in the theme editor for it.
Reviewed by: Julian Eisel
Differential Revision: https://developer.blender.org/D7219
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index f4bb2f8ef0f..3b2753518bb 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -3608,6 +3608,11 @@ static void rna_def_userdef_theme_space_clip(BlenderRNA *brna) rna_def_userdef_theme_spaces_main(srna); rna_def_userdef_theme_spaces_list_main(srna); + prop = RNA_def_property(srna, "grid", PROP_FLOAT, PROP_COLOR_GAMMA); + RNA_def_property_array(prop, 3); + RNA_def_property_ui_text(prop, "Grid", ""); + RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "marker_outline", PROP_FLOAT, PROP_COLOR_GAMMA); RNA_def_property_float_sdna(prop, NULL, "marker_outline"); RNA_def_property_array(prop, 3); |