From 54931324f5b2fa36bff1ed76fad259aa5b22cf2e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 10 Oct 2018 17:42:47 +0200 Subject: Fix diagonal line artifact in view navigate icons. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Clément for finding the fix! --- source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/gizmo_library') diff --git a/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c index e16deb71304..7b625364905 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c @@ -212,7 +212,9 @@ static void button2d_draw_intern( } float alpha = (highlight) ? 1.0f : 0.8f; + GPU_polygon_smooth(false); UI_icon_draw_alpha(pos[0], pos[1], button->icon, alpha); + GPU_polygon_smooth(true); } GPU_blend(false); } -- cgit v1.2.3