[Bf-blender-cvs] [8c0b5c0] master: Draw emboss when area is full but in quad-split

Campbell Barton noreply at git.blender.org
Mon Jul 13 23:36:27 CEST 2015


Commit: 8c0b5c02de4e26268ca3478bc61896be11e638fe
Author: Campbell Barton
Date:   Tue Jul 14 07:28:30 2015 +1000
Branches: master
https://developer.blender.org/rB8c0b5c02de4e26268ca3478bc61896be11e638fe

Draw emboss when area is full but in quad-split

===================================================================

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

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 48b0037..79d6b84 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -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);
+		}
 	}
 }




More information about the Bf-blender-cvs mailing list