Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-08-18 23:47:33 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-08-18 23:47:33 +0400
commit6fe983ddf51ff60156d3be21ca5fb73f629867e9 (patch)
tree65a0ef732da25ce384c94ce39ae33df570e3dcc4
parentb9f78815f181434ec8906cadf30bfc5716de47d8 (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.c3
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));
+ }
}
}