diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-19 03:40:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-19 04:09:53 +0300 |
commit | b62e1146e13cf94e14d7ef8003b8a4cde87d0437 (patch) | |
tree | 077a3ceaea67da205595644729ef577ab1c70af0 /source/blender/makesrna/intern | |
parent | 014e569258519cbba56fce9a6a29b208ccdbb1f2 (diff) |
UI: add view aligned gizmo color
Was hard coded to white making white backgrounds impractical.
D7162 by @billreynish with edits.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index e3d83a0cf0c..69694624a2b 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -1571,6 +1571,12 @@ static void rna_def_userdef_theme_ui(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Gizmo Secondary", ""); RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "gizmo_view_align", PROP_FLOAT, PROP_COLOR_GAMMA); + RNA_def_property_float_sdna(prop, NULL, "gizmo_view_align"); + RNA_def_property_array(prop, 3); + RNA_def_property_ui_text(prop, "Gizmo View Align", ""); + RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "gizmo_a", PROP_FLOAT, PROP_COLOR_GAMMA); RNA_def_property_float_sdna(prop, NULL, "gizmo_a"); RNA_def_property_array(prop, 3); |