diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-11 17:18:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-11 17:52:46 +0300 |
commit | 5f47adc0f7ae2b3189d878e0e61cd82e0174f315 (patch) | |
tree | 78770ac12dd65fda3b2635704881f9036ac8dfd4 /source/blender/blenloader | |
parent | 4665a0887341a38606b7354ce9b29cf0c6cdb6aa (diff) |
UI: enable topbar by default
This lets us add settings to the options panel without them being
hidden from the user.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 1c91871694f..87c8869622a 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -196,18 +196,13 @@ static void blo_update_defaults_screen(bScreen *screen, } } - /* Show toopbar for sculpt/paint modes. */ - const bool show_tool_header = STR_ELEM( - workspace_name, "Sculpting", "Texture Paint", "2D Animation", "2D Full Canvas"); - - if (show_tool_header) { - for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { - for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { - ListBase *regionbase = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase; - for (ARegion *ar = regionbase->first; ar; ar = ar->next) { - if (ar->regiontype == RGN_TYPE_TOOL_HEADER) { - ar->flag &= ~(RGN_FLAG_HIDDEN | RGN_FLAG_HIDDEN_BY_USER); - } + /* Show top-bar by default. */ + for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { + for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { + ListBase *regionbase = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase; + for (ARegion *ar = regionbase->first; ar; ar = ar->next) { + if (ar->regiontype == RGN_TYPE_TOOL_HEADER) { + ar->flag &= ~(RGN_FLAG_HIDDEN | RGN_FLAG_HIDDEN_BY_USER); } } } |