[Bf-blender-cvs] [e2cd654] master: Fix tool properties region drawing even if the toolbar is hidden.

Brecht Van Lommel noreply at git.blender.org
Wed Jan 22 16:43:28 CET 2014


Commit: e2cd654a3e53c8265a2a27f69b861dc2e44106c3
Author: Brecht Van Lommel
Date:   Wed Jan 22 16:35:11 2014 +0100
https://developer.blender.org/rBe2cd654a3e53c8265a2a27f69b861dc2e44106c3

Fix tool properties region drawing even if the toolbar is hidden.

This would show as a line on the side of the 3D view with high DPI / retina,
not easy to notice.

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

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

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index ef3cbeb..2c69150 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1184,7 +1184,12 @@ static void area_calc_totrct(ScrArea *sa, int sizex, int sizey)
 /* used for area initialize below */
 static void region_subwindow(wmWindow *win, ARegion *ar)
 {
-	if (ar->flag & (RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) {
+	bool hidden = (ar->flag & (RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) != 0;
+
+	if ((ar->alignment & RGN_SPLIT_PREV) && ar->prev)
+		hidden = hidden || (ar->prev->flag & (RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL));
+
+	if (hidden) {
 		if (ar->swinid)
 			wm_subwindow_close(win, ar->swinid);
 		ar->swinid = 0;




More information about the Bf-blender-cvs mailing list