[Bf-blender-cvs] [54931324f5b] blender2.8: Fix diagonal line artifact in view navigate icons.

Brecht Van Lommel noreply at git.blender.org
Wed Oct 10 17:53:34 CEST 2018


Commit: 54931324f5b2fa36bff1ed76fad259aa5b22cf2e
Author: Brecht Van Lommel
Date:   Wed Oct 10 17:42:47 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB54931324f5b2fa36bff1ed76fad259aa5b22cf2e

Fix diagonal line artifact in view navigate icons.

Thanks to Clément for finding the fix!

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

M	source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c

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

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);
 	}



More information about the Bf-blender-cvs mailing list