diff options
author | Dalai Felinto <dalai@blender.org> | 2021-09-16 16:27:36 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-09-16 17:02:33 +0300 |
commit | f2cfad77f9f8876edfdc9930206fc12db71f25b0 (patch) | |
tree | 72f1a49a2c3ac0419df1f07c4a3b852142bbbeb6 /source/blender/makesrna | |
parent | 9fee59a4849cdedf0ce5332ec78c70dd128aa3b1 (diff) |
App Settings: Regions Visbility Toggle
The toggle that allow users to "show" the region (header, toolbar, ...)
when it is collapsed can now be configured for the apps.
Note: This option is not visibile in the UI.
Differential Revision: D12516
Diffstat (limited to 'source/blender/makesrna')
-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 0a123c59ee2..a457cb980ee 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -6245,6 +6245,12 @@ static void rna_def_userdef_apps(BlenderRNA *brna) RNA_def_property_ui_text( prop, "Corner Splitting", "Split and join editors by dragging from corners"); RNA_def_property_update(prop, 0, "rna_userdef_screen_update"); + + prop = RNA_def_property(srna, "show_regions_visibility_toggle", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "app_flag", USER_APP_HIDE_REGION_TOGGLE); + RNA_def_property_ui_text( + prop, "Regions Visibility Toggle", "Header and side bars visibility toggles"); + RNA_def_property_update(prop, 0, "rna_userdef_screen_update"); } static void rna_def_userdef_experimental(BlenderRNA *brna) |