diff options
author | Pawel Franitza <Rongix> | 2020-02-28 16:07:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-28 16:11:48 +0300 |
commit | 2269759fdf94cb7017685e4ce3f7677b3d8227ae (patch) | |
tree | f616293ae72630e03a5f2748f03b7eeac92ccd6e /source/blender/makesrna | |
parent | e287122af6ca2bb4b60ac938b5ac8a3f1354cad9 (diff) |
UI: add theme option for grid levels to display in node editor background
Differential Revision: https://developer.blender.org/D6916
Diffstat (limited to 'source/blender/makesrna')
-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 3e223d613b8..4b2a512c010 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -2817,6 +2817,14 @@ static void rna_def_userdef_theme_space_node(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Noodle curving", "Curving of the noodle"); RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "grid_levels", PROP_INT, PROP_NONE); + RNA_def_property_int_sdna(prop, NULL, "grid_levels"); + RNA_def_property_int_default(prop, 2); + RNA_def_property_range(prop, 0, 2); + RNA_def_property_ui_text( + prop, "Grid levels", "Amount of grid lines displayed in the background"); + RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "input_node", PROP_FLOAT, PROP_COLOR_GAMMA); RNA_def_property_float_sdna(prop, NULL, "syntaxn"); RNA_def_property_array(prop, 3); |