From eaeb8004f4834c6defbbdfd23a235965bea69d00 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 8 Mar 2011 13:02:26 +0000 Subject: 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. --- source/blender/editors/space_userpref/space_userpref.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/blender/editors/space_userpref/space_userpref.c b/source/blender/editors/space_userpref/space_userpref.c index f0202e2a105..248b65e4e9c 100644 --- a/source/blender/editors/space_userpref/space_userpref.c +++ b/source/blender/editors/space_userpref/space_userpref.c @@ -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_init(wmWindowManager *wm, ARegion *ar) 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); } -- cgit v1.2.3