From d95bb087d0346164ab35df003ed8c4a27088e9eb Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 9 Oct 2019 19:03:57 +0200 Subject: Sculpt: Fix wireframe drawing With this commit sculpt mode draws the real mesh wireframe instead of the triangulated version by ignoring non real edges when building the PBVH GPU buffers Reviewed By: brecht Differential Revision: https://developer.blender.org/D6032 --- source/blender/gpu/GPU_buffers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 552bad2b0d6..6d2b0ad3be3 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -31,6 +31,7 @@ struct CCGElem; struct CCGKey; struct DMFlagMat; struct GSet; +struct Mesh; struct MLoop; struct MLoopCol; struct MLoopTri; @@ -49,7 +50,8 @@ GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3], const struct MLoopTri *looptri, const struct MVert *verts, const int *face_indices, - const int face_indices_len); + const int face_indices_len, + const struct Mesh *mesh); GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); -- cgit v1.2.3