[Bf-blender-cvs] [29c2c307f6e] blender2.8: UI: workaround for glitch redo panel glitch

Campbell Barton noreply at git.blender.org
Tue Sep 11 01:09:57 CEST 2018


Commit: 29c2c307f6e790905b4031064177933e9d787e9e
Author: Campbell Barton
Date:   Tue Sep 11 09:18:26 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB29c2c307f6e790905b4031064177933e9d787e9e

UI: workaround for glitch redo panel glitch

===================================================================

M	source/blender/editors/interface/interface_region_hud.c

===================================================================

diff --git a/source/blender/editors/interface/interface_region_hud.c b/source/blender/editors/interface/interface_region_hud.c
index f3ff6fdf2c0..3479b60a434 100644
--- a/source/blender/editors/interface/interface_region_hud.c
+++ b/source/blender/editors/interface/interface_region_hud.c
@@ -185,6 +185,10 @@ static void hud_region_layout(const bContext *C, ARegion *ar)
 		ar->winrct.ymax = (ar->winrct.ymin + ar->winy) - 1;
 
 		UI_view2d_region_reinit(v2d, V2D_COMMONVIEW_PANELS_UI, ar->winx, ar->winy);
+
+		/* Weak, but needed to avoid glitches, especially with hi-dpi (where resizing the view glitches often).
+		 * Fortunately this only happens occasionally. */
+		ED_region_panels_layout(C, ar);
 	}
 
 	/* restore view matrix */



More information about the Bf-blender-cvs mailing list