Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2021-09-16 16:27:36 +0300
committerDalai Felinto <dalai@blender.org>2021-09-16 17:02:33 +0300
commitf2cfad77f9f8876edfdc9930206fc12db71f25b0 (patch)
tree72f1a49a2c3ac0419df1f07c4a3b852142bbbeb6 /source/blender/editors
parent9fee59a4849cdedf0ce5332ec78c70dd128aa3b1 (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.c4
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;
}