Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-19 09:46:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-19 09:47:07 +0300
commit3b4782dc24c8f5ce6cd0936afc0a9a37ead85c4e (patch)
tree1bd3dc9cb97cc1e20e38b438a5240447bb37ec2b /source/blender/editors/gizmo_library
parent6c7ad56f00f79caa744cf47f129dc83abf51f620 (diff)
Gizmo: exclude arc from selection
Also disable polygon smooth before drawing arc.
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c3
1 files changed, 2 insertions, 1 deletions
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;