Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-03-08 16:02:26 +0300
committerTon Roosendaal <ton@blender.org>2011-03-08 16:02:26 +0300
commiteaeb8004f4834c6defbbdfd23a235965bea69d00 (patch)
tree90b479a9196cc1fd844400021f8118e4e2cea132 /source/blender/editors/space_userpref
parent95ed5355b79c0c93c585c6f98dccd3a8533b6f20 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_userpref')
-rw-r--r--source/blender/editors/space_userpref/space_userpref.c5
1 files changed, 5 insertions, 0 deletions
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);
}