[Bf-blender-cvs] [3d4231babf1] master: UI: Fix opacity of the popover arrow outline

Yevgeny Makarov noreply at git.blender.org
Thu Oct 8 21:25:56 CEST 2020


Commit: 3d4231babf1e3ff6cd330eaf536232ea8686ca5c
Author: Yevgeny Makarov
Date:   Thu Oct 8 14:25:22 2020 -0500
Branches: master
https://developer.blender.org/rB3d4231babf1e3ff6cd330eaf536232ea8686ca5c

UI: Fix opacity of the popover arrow outline

Due to the old AA method, it was necessary to add transparency to the
outline of the popover arrow to match the box outline opacity. This is
no longer required after rB15dda0115c78.

See the differential for before and after screenshots.

Differential Revision: https://developer.blender.org/D9026

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

M	source/blender/editors/interface/interface_widgets.c

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

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index becfab3cb07..3d98688dc04 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -4956,7 +4956,7 @@ static void ui_draw_popover_back_impl(const uiWidgetColors *wcol,
 
     GPU_blend(GPU_BLEND_ALPHA);
     immBegin(GPU_PRIM_TRIS, 3);
-    immUniformColor4ub(UNPACK3(wcol->outline), 166);
+    immUniformColor4ubv(wcol->outline);
     immVertex2f(pos, cent_x - unit_half, y);
     immVertex2f(pos, cent_x + unit_half, y);
     immVertex2f(pos, cent_x, y + sign * unit_half);



More information about the Bf-blender-cvs mailing list