Cycles: svn merge -r36352:36495 https://svn.blender.org/svnroot/bf-blender/trunk...
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index 39265f4073e3f896534cfa474fae8908af29cffe..374384a2a9736a40ab85255469b55ff3129e21a9 100644 (file)
@@ -4217,7 +4217,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
        glDisableClientState(GL_NORMAL_ARRAY);
        glDisableClientState(GL_VERTEX_ARRAY);
        glShadeModel(GL_FLAT);
-       glEnable(GL_DEPTH_TEST);
+       if(v3d->zbuf) glEnable(GL_DEPTH_TEST);
        glLineWidth(1.0f);
        glPointSize(1.0);
 }