Two small fixes for previous commit;

- new zbuf-clipped select was always on
- drawing the 'floor' now doesnt write in zbuffer when in editmode
This commit is contained in:
2004-09-25 14:21:09 +00:00
parent 6f074f6f46
commit dfef53a632
2 changed files with 6 additions and 2 deletions

View File

@@ -637,6 +637,8 @@ static void drawfloor(void)
if(vd->gridlines<3) return;
if(G.zbuf && G.obedit) glDepthMask(0); // for zbuffer-select
gridlines= vd->gridlines/2;
grid= gridlines*vd->grid;
@@ -736,6 +738,8 @@ static void drawfloor(void)
glEnd();
}
if(G.zbuf && G.obedit) glDepthMask(1);
}
static void drawcursor(void)

View File

@@ -105,7 +105,7 @@ int EM_zbuffer_visible(float *co, short xs, short ys)
static float persmat[4][4];
float zval, vec4[4];
if(G.vd->drawtype<OB_SOLID && (G.vd->flag & V3D_ZBUF_SELECT)==0) return 1;
if(G.vd->drawtype<OB_SOLID || (G.vd->flag & V3D_ZBUF_SELECT)==0) return 1;
if(co==NULL) { // init
float pmat[4][4], vmat[4][4];