Removed on old patch from the code, which attempted to keep the scrollers
authorTon Roosendaal <ton@blender.org>
Mon, 31 Dec 2012 14:56:07 +0000 (14:56 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 31 Dec 2012 14:56:07 +0000 (14:56 +0000)
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.

source/blender/editors/screen/area.c
source/blender/editors/space_userpref/space_userpref.c

index 827f19307b8653909489efd71b05ae2b5b759f06..5af60726f146c9a02369a860fe2b043c41d48091 100644 (file)
@@ -1783,10 +1783,6 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
 void ED_region_panels_init(wmWindowManager *wm, ARegion *ar)
 {
        wmKeyMap *keymap;
-       
-       /* used for correctly initialized User-Prefs only?  */
-//     if (!(ar->v2d.align & V2D_ALIGN_NO_POS_Y))
-//             ar->v2d.flag &= ~V2D_IS_INITIALISED;
 
        UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_PANELS_UI, ar->winx, ar->winy);
 
index 6560f218002d7b4d638f63ef308879a77a6d7d96..5ebbebec35b4ad8e040371d6ef09b924bdbde923 100644 (file)
@@ -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);