From 75ae1ae5ef0d3bb37cd3a5c70699955cb207dcde Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 13 Jul 2005 19:42:08 +0000 Subject: Armature "XRay mode" now draws nicely with solid too. For it to work, I had to add a new feature to the 3d window, to collect "after draw" objects, which get drawn as last, after a clear of the zbuffer. Same method can be used for nice OpenGL transparent draw, the system is ready for it, do that later. The huge commit is caused by cleaning up globals from struct Global. Many variables were unused or just not needed anymore. Did that to move the ugly G.zbuf to where it belongs, in the View3D space struct. :) --- source/blender/src/transform_constraints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/src/transform_constraints.c') diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c index b6ef7a8bf21..b8d7e4bbbcf 100755 --- a/source/blender/src/transform_constraints.c +++ b/source/blender/src/transform_constraints.c @@ -692,7 +692,7 @@ void BIF_drawConstraint(void) glVertex3fv(vec); glEnd(); setlinestyle(0); - if(G.zbuf) glEnable(GL_DEPTH_TEST); // warning for global! + if(G.vd->zbuf) glEnable(GL_DEPTH_TEST); } if (tc->mode & CON_AXIS0) { -- cgit v1.2.3