[Bf-blender-cvs] [957ca418e4d] temp-lanpr-staging: UI: skip drawing the full-screen when alpha is zero

Campbell Barton noreply at git.blender.org
Fri Aug 16 03:04:48 CEST 2019


Commit: 957ca418e4d798932ae728483a737679526147c2
Author: Campbell Barton
Date:   Thu Aug 15 18:18:22 2019 +1000
Branches: temp-lanpr-staging
https://developer.blender.org/rB957ca418e4d798932ae728483a737679526147c2

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