UI: disallow splitting of temporary screens
[blender.git] / source / blender / editors / screen / screen_draw.c
index 84eb723a43dc5e73d3078676f2a5fb5299773ca2..a5d0bbacd911e35139a08a6f2fd0e96ed12eaafb 100644 (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;