Hey,
I noticed that Transform manipulator and axis are still drawn without
AA. Any reason for that?
I attach a patch which makes it use AA. If there is no issue with that,
I'd like to ask for permission to commit that to trunk.
Best regards
--
Thomas Dinges
Blender Developer, Artist and Musician
www.dingto.org
Index: source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- source/blender/editors/space_view3d/view3d_draw.c (revision 38635)
+++ source/blender/editors/space_view3d/view3d_draw.c (working copy)
@@ -611,6 +611,7 @@
glLineWidth(2);
glEnable(GL_BLEND);
+ glEnable(GL_LINE_SMOOTH);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
/* X */
@@ -673,6 +674,7 @@
glLineWidth(1.0);
glDisable(GL_BLEND);
+ glDisable(GL_LINE_SMOOTH);
}
Index: source/blender/editors/transform/transform_manipulator.c
===================================================================
--- source/blender/editors/transform/transform_manipulator.c (revision 38635)
+++ source/blender/editors/transform/transform_manipulator.c (working copy)
@@ -1520,6 +1520,7 @@
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
+ glEnable(GL_LINE_SMOOTH);
if(v3d->twtype & V3D_MANIP_ROTATE) {
if(G.rt==3) {
@@ -1537,6 +1538,7 @@
}
glDisable(GL_BLEND);
+ glDisable(GL_LINE_SMOOTH);
}
}
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers