Commit: f5ab4bc339464ad6303a125fdee73b9a9a62bf86
Author: Clément Foucault
Date:   Thu Feb 16 12:58:28 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBf5ab4bc339464ad6303a125fdee73b9a9a62bf86

Clay Engine: Fix grid not showing.

===================================================================

M       source/blender/draw/intern/draw_view.c

===================================================================

diff --git a/source/blender/draw/intern/draw_view.c 
b/source/blender/draw/intern/draw_view.c
index ef01a51c19..eaf1289034 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -521,6 +521,7 @@ void DRW_draw_grid(void)
        rv3d->gridview = ED_view3d_grid_scale(scene, v3d, &grid_unit);
 
        glEnable(GL_DEPTH_TEST);
+       glDepthFunc(GL_LESS);
        glDepthMask(GL_TRUE);
 
        if (!draw_floor) {

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to