[Bf-blender-cvs] [2d0c1f324c4] blender2.8: UI: Remove hard-code + add comment for aa triangles

Dalai Felinto noreply at git.blender.org
Sun Apr 22 19:54:36 CEST 2018


Commit: 2d0c1f324c4dbe26906a5da886e20f35d19813a6
Author: Dalai Felinto
Date:   Sun Apr 22 17:01:57 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2d0c1f324c4dbe26906a5da886e20f35d19813a6

UI: Remove hard-code + add comment for aa triangles

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

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 ea4dc831ac2..4bfd99c66ab 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -501,7 +501,8 @@ void ui_draw_anti_tria(float x1, float y1, float x2, float y2, float x3, float y
 	float draw_color[4];
 
 	copy_v4_v4(draw_color, color);
-	draw_color[3] *= 0.125f;
+	/* Note: This won't give back the original color. */
+	draw_color[3] *= 1.0f / WIDGET_AA_JITTER;
 
 	glEnable(GL_BLEND);



More information about the Bf-blender-cvs mailing list