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:
authorCampbell Barton <ideasman42@gmail.com>2018-01-11 08:08:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-11 08:10:46 +0300
commit717090f40e1aa12be26522df350d01a50d7b6316 (patch)
treee2379826e846d597bea18a75590c15158618787c /source/blender/editors/screen/area.c
parent9d62e6e782addd16323bd95ed70f86fcb077fd84 (diff)
UI: option not to show screen splitting widgets
Request for simplified Blender template, this may be extended to limit access to other UI changes that could be pressed by accident.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-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 9cfaf3b4c1d..e8dc220667a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -666,6 +666,10 @@ static void area_azone_initialize(wmWindow *win, bScreen *screen, ScrArea *sa)
return;
}
+ if (U.uiflag & USER_LOCK_UI_LAYOUT) {
+ return;
+ }
+
/* can't click on bottom corners on OS X, already used for resizing */
#ifdef __APPLE__
if (!(sa->totrct.xmin == 0 && sa->totrct.ymin == 0) || WM_window_is_fullscreen(win))