UI: workaround for glitch redo panel glitch

This commit is contained in:
Campbell Barton 2018-09-11 09:18:26 +10:00
parent 406554c4db
commit 29c2c307f6
Notes: blender-bot 2023-02-14 05:19:54 +01:00
Referenced by issue #57134, Crashing with extrusion tool (Blender 2.8, Windows 10)
Referenced by issue #56768, Colors of opened blend file are rendered in a median blur
Referenced by issue #56758, Outliner - Select Hierarchy not working
1 changed files with 4 additions and 0 deletions

View File

@ -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 */