diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-12 14:03:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-12 14:03:41 +0300 |
commit | 9e652ce6bb3e8d18906bcf71f58104278bb03365 (patch) | |
tree | 0c4152307b730ffaac6d95bd663f01ca9b6856e5 /source/blender/editors/space_view3d | |
parent | f97db861394d2fad020bb05c2f0e3683a063b666 (diff) |
fix for depth drawing + clipping
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 855da0eefcf..31c7dbe7321 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1728,7 +1728,12 @@ void draw_depth(Scene *scene, ARegion *ar, View3D *v3d, int (* func)(void *)) v3d->transp= FALSE; } + if(rv3d->rflag & RV3D_CLIPPING) + view3d_clr_clipping(); + v3d->zbuf = zbuf; + if(!v3d->zbuf) glDisable(GL_DEPTH_TEST); + U.glalphaclip = glalphaclip; v3d->flag = flag; U.obcenter_dia= obcenter_dia; |