[Bf-blender-cvs] [255615867c1] master: Fix inconsistent toolbar and sidebar sizes in default workspaces

Brecht Van Lommel noreply at git.blender.org
Sun May 19 13:21:36 CEST 2019


Commit: 255615867c1751eb94d6cb4428458c988fcdca53
Author: Brecht Van Lommel
Date:   Sun May 19 13:18:50 2019 +0200
Branches: master
https://developer.blender.org/rB255615867c1751eb94d6cb4428458c988fcdca53

Fix inconsistent toolbar and sidebar sizes in default workspaces

===================================================================

M	source/blender/blenloader/intern/versioning_defaults.c

===================================================================

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)) {



More information about the Bf-blender-cvs mailing list