diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-31 18:56:07 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-31 18:56:07 +0400 |
commit | d4eac8189ead0db6b01f3b393f563158cff0ca92 (patch) | |
tree | d4c5c60f7fbbd430ab39bcb7630bcea334c26cd8 /source/blender/editors/space_userpref | |
parent | b754fcd6f93ff610d533803a1acb2fd4c3aac0ae (diff) |
Removed on old patch from the code, which attempted to keep the scrollers
in user preferences in place.
New scroller code made user pref scroller jump back on activating add-ons,
because that causes a full blender system refresh.
Diffstat (limited to 'source/blender/editors/space_userpref')
-rw-r--r-- | source/blender/editors/space_userpref/space_userpref.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_userpref/space_userpref.c b/source/blender/editors/space_userpref/space_userpref.c index 6560f218002..5ebbebec35b 100644 --- a/source/blender/editors/space_userpref/space_userpref.c +++ b/source/blender/editors/space_userpref/space_userpref.c @@ -105,7 +105,9 @@ static SpaceLink *userpref_duplicate(SpaceLink *sl) /* add handlers, stuff you only do once or on area/region changes */ static void userpref_main_area_init(wmWindowManager *wm, ARegion *ar) { - ar->v2d.flag &= ~V2D_IS_INITIALISED; + /* do not use here, the properties changed in userprefs do a system-wide refresh, then scroller jumps back */ + /* ar->v2d.flag &= ~V2D_IS_INITIALISED; */ + ar->v2d.scroll = V2D_SCROLL_RIGHT | V2D_SCROLL_VERTICAL_HIDE; ED_region_panels_init(wm, ar); |