Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-22 19:35:11 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-22 19:40:11 +0400
commite2cd654a3e53c8265a2a27f69b861dc2e44106c3 (patch)
tree987d96fec7f35801590725496b17be7faf6bf7e8 /source/blender/editors/screen
parent162d6c73e3d0799303dcdfc19e744cfeb8d10e5f (diff)
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.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/area.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index ef3cbeb2acc..2c691505877 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;