[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35403] trunk/blender/source/blender/ editors/space_userpref/space_userpref.c: Bugfix #25422
Ton Roosendaal
ton at blender.org
Tue Mar 8 14:02:26 CET 2011
Revision: 35403
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35403
Author: ton
Date: 2011-03-08 13:02:26 +0000 (Tue, 08 Mar 2011)
Log Message:
-----------
Bugfix #25422
In some cases the User Preferences UI was "vibrating" on redraws.
Could only be redone by some, but this fix is confirmed to work.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_userpref/space_userpref.c
Modified: trunk/blender/source/blender/editors/space_userpref/space_userpref.c
===================================================================
--- trunk/blender/source/blender/editors/space_userpref/space_userpref.c 2011-03-08 09:01:22 UTC (rev 35402)
+++ trunk/blender/source/blender/editors/space_userpref/space_userpref.c 2011-03-08 13:02:26 UTC (rev 35403)
@@ -49,6 +49,8 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "UI_view2d.h"
+
#include "userpref_intern.h" // own include
/* ******************** default callbacks for userpref space ***************** */
@@ -110,6 +112,9 @@
static void userpref_main_area_draw(const bContext *C, ARegion *ar)
{
+ /* this solves "vibrating UI" bug #25422 */
+ UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_PANELS_UI, ar->winx, ar->winy);
+
ED_region_panels(C, ar, 1, NULL, -1);
}
More information about the Bf-blender-cvs
mailing list