UI: disable screen edges for full-screen areas
This commit is contained in:
parent
3e625a7a06
commit
1844ccd521
Notes:
blender-bot
2023-02-14 04:59:01 +01:00
Referenced by issue #58101, Image empties are only rendering their border when using OpenGL multisample > 2. Referenced by issue #58002, Viewport Render crash Referenced by issue #58005, Crash when Brush Collection in the same Collection as Ocean+DynamicPaintCanvas Referenced by issue #57995, Blender 2.8 Crashed while working Referenced by issue #57956, Blender crashes on startup
|
@ -370,6 +370,12 @@ static void drawscredge_area(ScrArea *sa, int sizex, int sizey, float edge_thick
|
|||
void ED_screen_draw_edges(wmWindow *win)
|
||||
{
|
||||
bScreen *screen = WM_window_get_active_screen(win);
|
||||
screen->do_draw = false;
|
||||
|
||||
if (screen->state == SCREENFULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
const int winsize_x = WM_window_pixels_x(win);
|
||||
const int winsize_y = WM_window_pixels_y(win);
|
||||
float col[4], corner_scale, edge_thickness;
|
||||
|
@ -421,8 +427,6 @@ void ED_screen_draw_edges(wmWindow *win)
|
|||
}
|
||||
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
|
||||
screen->do_draw = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue