Fix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.

This commit is contained in:
Brecht Van Lommel 2012-10-23 11:07:05 +00:00
parent 0760308551
commit 2b9e70c81e

@ -1472,6 +1472,9 @@ void GPU_update_mesh_buffers(GPU_Buffers *buffers, MVert *mvert,
float fmask;
if (paint_is_face_hidden(f, mvert))
continue;
/* Face normal and mask */
if (f->v4) {
normal_quad_v3(fno,