UI: disallow splitting of temporary screens
authorCampbell Barton <ideasman42@gmail.com>
Thu, 14 Mar 2019 00:12:52 +0000 (11:12 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 14 Mar 2019 00:12:52 +0000 (11:12 +1100)
D4510 by @harley

source/blender/editors/screen/area.c
source/blender/editors/screen/screen_draw.c

index a430ccd..411826d 100644 (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,
index 84eb723..a5d0bba 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;