Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-09-25 18:21:09 +0400
committerTon Roosendaal <ton@blender.org>2004-09-25 18:21:09 +0400
commitdfef53a6328a26838ff6451ab4452b871766dd2c (patch)
tree5b9dac17ddfc8ac23d0559b67f20c3d7907745b0 /source/blender/src/drawview.c
parent6f074f6f461066777f5d7546882c44d8ba0288db (diff)
Two small fixes for previous commit;
- new zbuf-clipped select was always on - drawing the 'floor' now doesnt write in zbuffer when in editmode
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 952ca35b5d9..67b638b5c04 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -636,7 +636,9 @@ static void drawfloor(void)
vert[2]= 0.0;
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)