diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-24 17:28:18 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-24 17:28:38 +0300 |
commit | dc80ff9b56df7a509b62031f9e638347072ab927 (patch) | |
tree | 3254fbc4b3035031957f89d66be80096e3581d51 /source/blender/gpu | |
parent | a028575c4a613b5d87ec26434f8c846c60861cfe (diff) |
Fix T45541 crash when mixing flat and smooth shaded faces in sculpt
mode.
Issue from looptri merge.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 7c71b32e5ca..b2bfb0b47b8 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -1317,7 +1317,7 @@ GPU_PBVH_Buffers *GPU_build_mesh_pbvh_buffers( buffers = MEM_callocN(sizeof(GPU_PBVH_Buffers), "GPU_Buffers"); buffers->index_type = GL_UNSIGNED_SHORT; - buffers->smooth = mpoly[face_indices[0]].flag & ME_SMOOTH; + buffers->smooth = mpoly[looptri[face_indices[0]].poly].flag & ME_SMOOTH; buffers->show_diffuse_color = false; buffers->use_matcaps = false; |