UI: workaround for glitch redo panel glitch
This commit is contained in:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue