diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-19 14:18:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-19 14:21:24 +0300 |
commit | 255615867c1751eb94d6cb4428458c988fcdca53 (patch) | |
tree | 16e45f4f4ed60623b66233d3debfb39975f45cef /source/blender/blenloader/intern/versioning_defaults.c | |
parent | 24675eddcbaef7b47290949e986b6ba4319cac38 (diff) |
Fix inconsistent toolbar and sidebar sizes in default workspaces
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index d43bf020f7d..a517d44fb4e 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -162,6 +162,10 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) * (order, open/closed) as defined by UI code here! */ BKE_area_region_panels_free(&ar->panels); + /* Reset size so it uses consistent defaults from the region types. */ + ar->sizex = 0; + ar->sizey = 0; + /* some toolbars have been saved as initialized, * we don't want them to have odd zoom-level or scrolling set, see: T47047 */ if (ELEM(ar->regiontype, RGN_TYPE_UI, RGN_TYPE_TOOLS, RGN_TYPE_TOOL_PROPS)) { |