diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-10 18:42:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-10 18:47:26 +0300 |
commit | 54931324f5b2fa36bff1ed76fad259aa5b22cf2e (patch) | |
tree | bc6f4eff92f11a5f63c9c2d0857e7e4da9853b65 /source/blender/editors/gizmo_library | |
parent | e65784a0519e25e9ca560ab63758287cea45f123 (diff) |
Fix diagonal line artifact in view navigate icons.
Thanks to Clément for finding the fix!
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |