diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-15 11:18:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-15 12:51:28 +0300 |
commit | e6fa174fd7744a88c1ea9a986fdb9b7e908c9047 (patch) | |
tree | 96af054e7b20fc0d34cbb4db2655fad614a710fe /source | |
parent | a2a9c95845559b0bfffaf4b6b5e32e31ed3da7a1 (diff) |
UI: skip drawing the full-screen when alpha is zero
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 6f776d3115a..84ac3bfa29d 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -368,7 +368,9 @@ static void region_draw_azones(ScrArea *sa, ARegion *ar) } } else if (az->type == AZONE_FULLSCREEN) { - area_draw_azone_fullscreen(az->x1, az->y1, az->x2, az->y2, az->alpha); + if (az->alpha > 0.0f) { + area_draw_azone_fullscreen(az->x1, az->y1, az->x2, az->y2, az->alpha); + } } } if (!IS_EQF(az->alpha, 0.0f) && ELEM(az->type, AZONE_FULLSCREEN, AZONE_REGION_SCROLL)) { |