diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-08-18 23:47:33 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-08-18 23:47:33 +0400 |
commit | 6fe983ddf51ff60156d3be21ca5fb73f629867e9 (patch) | |
tree | 65a0ef732da25ce384c94ce39ae33df570e3dcc4 | |
parent | b9f78815f181434ec8906cadf30bfc5716de47d8 (diff) |
Fix #34413 Dyntopo, smooth shading normals not getting uploaded to GPU
and undo buffers.
When we have smooth shading we must not only update the unique vertex
normals.
-rw-r--r-- | source/blender/blenkernel/intern/pbvh_bmesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pbvh_bmesh.c b/source/blender/blenkernel/intern/pbvh_bmesh.c index 0e2e2bcfe19..c70b1fd11bf 100644 --- a/source/blender/blenkernel/intern/pbvh_bmesh.c +++ b/source/blender/blenkernel/intern/pbvh_bmesh.c @@ -1026,6 +1026,9 @@ void pbvh_bmesh_normals_update(PBVHNode **nodes, int totnode) GHASH_ITER (gh_iter, node->bm_unique_verts) { BM_vert_normal_update(BLI_ghashIterator_getKey(&gh_iter)); } + GHASH_ITER (gh_iter, node->bm_other_verts) { + BM_vert_normal_update(BLI_ghashIterator_getKey(&gh_iter)); + } } } |