Draw emboss when area is full but in quad-split
authorCampbell Barton <ideasman42@gmail.com>
Mon, 13 Jul 2015 21:28:30 +0000 (07:28 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 13 Jul 2015 21:31:46 +0000 (07:31 +1000)
source/blender/editors/screen/area.c

index 48b00376667abe6e243e444083201e90e0c88c06..79d6b8453618212ecaf9d5ce97bcb109b0280ccd 100644 (file)
@@ -537,8 +537,12 @@ void ED_region_do_draw(bContext *C, ARegion *ar)
        
        UI_blocklist_free_inactive(C, &ar->uiblocks);
 
-       if (sa && (win->screen->state != SCREENFULL)) {
-               region_draw_emboss(ar, &ar->winrct);
+       if (sa) {
+               /* disable emboss when the area is full,
+                * unless we need to see division between regions (quad-split for eg) */
+               if (((win->screen->state == SCREENFULL) && (ar->alignment == RGN_ALIGN_NONE)) == 0) {
+                       region_draw_emboss(ar, &ar->winrct);
+               }
        }
 }