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/editors | |
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/editors')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index e907c7e153f..384445db9fb 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1058,6 +1058,10 @@ static bool region_azone_edge_poll(const ARegion *region, const bool is_fullscre return false; } + if (is_hidden && (U.app_flag & USER_APP_HIDE_REGION_TOGGLE)) { + return false; + } + return true; } |