Fix edit-mesh draw not disabling stipple
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Jun 2016 11:35:02 +0000 (21:35 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Jun 2016 11:37:34 +0000 (21:37 +1000)
Caused problem w/ basic-shader

source/blender/blenkernel/intern/editderivedmesh.c

index ffd000eed88a029610f22303e08cd53475113dd4..8df07c5f3f4e22647af46021e06e6144cddfa905 100644 (file)
@@ -1181,6 +1181,10 @@ static void emDM_drawMappedFaces(
 
        /* if non zero we know a face was rendered */
        if (poly_prev != GL_ZERO) glEnd();
+
+       if (draw_option_prev == DM_DRAW_OPTION_STIPPLE) {
+               GPU_basic_shader_bind(GPU_SHADER_USE_COLOR);
+       }
 }
 
 static void bmdm_get_tri_uv(BMLoop *ltri[3], MLoopUV *luv[3], const int cd_loop_uv_offset)