[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53466] trunk/blender/source/blender/ editors: Removed on old patch from the code, which attempted to keep the scrollers
Ton Roosendaal
ton at blender.org
Mon Dec 31 15:56:13 CET 2012
Revision: 53466
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53466
Author: ton
Date: 2012-12-31 14:56:07 +0000 (Mon, 31 Dec 2012)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/screen/area.c
trunk/blender/source/blender/editors/space_userpref/space_userpref.c
Modified: trunk/blender/source/blender/editors/screen/area.c
===================================================================
--- trunk/blender/source/blender/editors/screen/area.c 2012-12-31 14:55:16 UTC (rev 53465)
+++ trunk/blender/source/blender/editors/screen/area.c 2012-12-31 14:56:07 UTC (rev 53466)
@@ -1783,10 +1783,6 @@
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);
Modified: trunk/blender/source/blender/editors/space_userpref/space_userpref.c
===================================================================
--- trunk/blender/source/blender/editors/space_userpref/space_userpref.c 2012-12-31 14:55:16 UTC (rev 53465)
+++ trunk/blender/source/blender/editors/space_userpref/space_userpref.c 2012-12-31 14:56:07 UTC (rev 53466)
@@ -105,7 +105,9 @@
/* 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);
More information about the Bf-blender-cvs
mailing list