Manipulators: Fix Rotate manipulator arc drawing issue.
authorClément Foucault <foucault.clem@gmail.com>
Tue, 24 Apr 2018 13:06:00 +0000 (15:06 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 24 Apr 2018 13:06:27 +0000 (15:06 +0200)
source/blender/editors/manipulator_library/manipulator_types/dial3d_manipulator.c

index 88961e85cca012190aefdfccae481b00880466ab..0d2f2c2cc24a4e45855b2ed729d409317bf46416 100644 (file)
@@ -310,7 +310,9 @@ static void dial_draw_intern(
 
                /* draw! */
                for (int i = 0; i < 2; i++) {
+                       glDisable(GL_POLYGON_SMOOTH);
                        dial_ghostarc_draw(mpr, angle_ofs, angle_delta, (const float [4]){0.8f, 0.8f, 0.8f, 0.4f});
+                       glEnable(GL_POLYGON_SMOOTH);
 
                        dial_ghostarc_draw_helpline(angle_ofs, co_outer, color); /* starting position */
                        dial_ghostarc_draw_helpline(angle_ofs + angle_delta, co_outer, color); /* starting position + current value */