[Bf-blender-cvs] [414e5fe0684] blender2.8: Correct polygon_smooth being left enabled

Campbell Barton noreply at git.blender.org
Wed Sep 19 07:20:05 CEST 2018


Commit: 414e5fe0684acd043cb34d3d0109f06053624610
Author: Campbell Barton
Date:   Wed Sep 19 15:31:53 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB414e5fe0684acd043cb34d3d0109f06053624610

Correct polygon_smooth being left enabled

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

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

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

diff --git a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
index 96c23aad6ef..1876d6ba00f 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
@@ -285,12 +285,11 @@ static void dial_ghostarc_draw_with_helplines(wmGizmo *gz, float angle_ofs, floa
 {
 	/* Coordinate at which the arc drawing will be started. */
 	const float co_outer[4] = {0.0f, DIAL_WIDTH, 0.0f};
-	GPU_polygon_smooth(false);
 	dial_ghostarc_draw(gz, angle_ofs, angle_delta, (const float[4]){0.8f, 0.8f, 0.8f, 0.4f});
 	GPU_polygon_smooth(true);
-
 	dial_ghostarc_draw_helpline(angle_ofs, co_outer, color_helpline);
 	dial_ghostarc_draw_helpline(angle_ofs + angle_delta, co_outer, color_helpline);
+	GPU_polygon_smooth(false);
 }
 
 static void dial_draw_intern(



More information about the Bf-blender-cvs mailing list