diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2015-05-08 23:20:18 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2015-05-08 23:20:18 +0300 |
commit | 54ac84f2b841f6948c8befca8ded95c101a5a2c4 (patch) | |
tree | 064df2bdd4ea866e8a507d0269feeebb929c6f6a | |
parent | 6ee0327594b2308b3111e1b8a7e52ed5959899fc (diff) |
Fix 3D View Properties scrollbar being not set to top in startup.blend
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index d320b305c06..045f422e4ac 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -121,9 +121,15 @@ void BLO_update_defaults_startup_blend(Main *bmain) } } - /* Remove all stored panels, we want to use defaults (order, open/closed) as defined by UI code here! */ for (ar = area->regionbase.first; ar; ar = ar->next) { + /* Remove all stored panels, we want to use defaults (order, open/closed) as defined by UI code here! */ BLI_freelistN(&ar->panels); + + /* simple fix for 3d view properties scrollbar being not set to top */ + if (ar->regiontype == RGN_TYPE_UI) { + ar->v2d.cur.ymax = ar->v2d.tot.ymax; + ar->v2d.cur.ymin = ar->v2d.cur.ymax - ar->winy; + } } } } |