[Bf-blender-cvs] [e6fa174fd77] master: UI: skip drawing the full-screen when alpha is zero
Campbell Barton
noreply at git.blender.org
Thu Aug 15 11:53:38 CEST 2019
Commit: e6fa174fd7744a88c1ea9a986fdb9b7e908c9047
Author: Campbell Barton
Date: Thu Aug 15 18:18:22 2019 +1000
Branches: master
https://developer.blender.org/rBe6fa174fd7744a88c1ea9a986fdb9b7e908c9047
UI: skip drawing the full-screen when alpha is zero
===================================================================
M source/blender/editors/screen/area.c
===================================================================
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)) {
More information about the Bf-blender-cvs
mailing list