diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-06 12:25:42 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-06 12:25:42 +0300 |
commit | afb45ae7cf67d18c2749a172c2a4ec5d57ce8003 (patch) | |
tree | 989660478ca582a862216a00bcf4f4bf40772075 /source/blender/blenloader | |
parent | 8a04f039adc852644bbdc8231353cce215692874 (diff) |
View2D: Code cleanup - UI_view2d_status_enforce()
This commit *should* bring UI_view2d_status_enforce() (formerly known in pre 2.5 as test_view2d) under control again.
I've attempted to reduce the amount of duplicated code here, so hopefully there won't be any nasty bugs that will show up in some of the other views when they are ported.
Summary of changes:
* Restored V2D_KEEPZOOM flag which I had previously removed, having misunderstood its function.
* Fixed bugs with resizing Outliner window
* Outliner width is now columns + 1 again. Documented reasons for this (otherwise, stuff gets covered by scrollbars, but we cannot see it)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c79e7ea53ca..9029653ba14 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5074,6 +5074,7 @@ static void do_versions_windowmanager_2_50(bScreen *screen) SpaceOops *soops= sa->spacedata.first; memcpy(&ar->v2d, &soops->v2d, sizeof(View2D)); + ar->v2d.scroll &= ~V2D_SCROLL_LEFT; ar->v2d.scroll |= V2D_SCROLL_RIGHT; ar->v2d.align = (V2D_ALIGN_NO_NEG_X|V2D_ALIGN_NO_POS_Y); |