UI: disallow splitting of temporary screens

D4510 by @harley
This commit is contained in:
Campbell Barton 2019-03-14 11:12:52 +11:00
parent 3ddd7e9704
commit 87aca8bd02
2 changed files with 9 additions and 0 deletions

View File

@ -750,6 +750,10 @@ static void area_azone_initialize(wmWindow *win, const bScreen *screen, ScrArea
return;
}
if (screen->temp) {
return;
}
float coords[4][4] = {
/* Bottom-left. */
{sa->totrct.xmin - U.pixelsize,

View File

@ -27,6 +27,7 @@
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_rect.h"
@ -370,6 +371,10 @@ void ED_screen_draw_edges(wmWindow *win)
return;
}
if (screen->temp && BLI_listbase_is_single(&screen->areabase)) {
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;