From 3b4782dc24c8f5ce6cd0936afc0a9a37ead85c4e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Sep 2018 16:46:29 +1000 Subject: Gizmo: exclude arc from selection Also disable polygon smooth before drawing arc. --- source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/gizmo_library') 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 8af936dd74e..c9fd19ccc17 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c @@ -272,6 +272,7 @@ 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); @@ -306,7 +307,7 @@ static void dial_draw_intern( } } - { + if (select == false) { float angle_ofs = 0.0f; float angle_delta = 0.0f; bool show_ghostarc = false; -- cgit v1.2.3