diff options
-rw-r--r-- | source/blender/editors/screen/area.c | 4 | ||||
-rw-r--r-- | source/blender/editors/screen/screen_draw.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index a430ccdc95e..411826d79c1 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -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, diff --git a/source/blender/editors/screen/screen_draw.c b/source/blender/editors/screen/screen_draw.c index 84eb723a43d..a5d0bbacd91 100644 --- a/source/blender/editors/screen/screen_draw.c +++ b/source/blender/editors/screen/screen_draw.c @@ -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; |