Commit: adb915c1a63d7927eb9101ba2757606f6887790f
Author: Clément Foucault
Date:   Tue Apr 24 15:04:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBadb915c1a63d7927eb9101ba2757606f6887790f

Manipulators: Enable AntiAliased drawing of manipulators by default.

This exhibit some little artifacts inherent to GL_LINE/POLYHON_SMOOTH but
it's far less distracting than really bad Aliasing.

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

M       source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c

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

diff --git 
a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c 
b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c
index d032cb79edc..1bb479774c2 100644
--- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c
+++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c
@@ -420,7 +420,15 @@ static void manipulators_draw_list(const wmManipulatorMap 
*mmap, const bContext
                        is_depth_prev = is_depth;
                }
 
+               /* XXX force AntiAlias Manipulators. */
+               glEnable(GL_LINE_SMOOTH);
+               glEnable(GL_POLYGON_SMOOTH);
+
                mpr->type->draw(C, mpr);
+
+               glDisable(GL_LINE_SMOOTH);
+               glDisable(GL_POLYGON_SMOOTH);
+
                /* free/remove manipulator link after drawing */
                BLI_freelinkN(draw_manipulators, link);
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to