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:
@@ -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)
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user