Gizmo: exclude arc from selection

Also disable polygon smooth before drawing arc.
This commit is contained in:
Campbell Barton 2018-09-19 16:46:29 +10:00
parent 6c7ad56f00
commit 3b4782dc24
1 changed files with 2 additions and 1 deletions

View File

@ -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;