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>2014-05-29 06:04:39 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-05-29 06:04:39 +0400
commitac0b69233cacf86aff8a3417b6b69a562eb0f964 (patch)
tree22f6b27961670843bebad2e5d5e25714884b88c7 /source/blender/blenkernel/intern/pbvh.c
parenta6bd6a8366044a377026d699c38672078cd335d8 (diff)
Related to T40381,
Cleanup the normal flag or else the smooth tool will work on more and more nodes as we sculpt.
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh.c')
-rw-r--r--source/blender/blenkernel/intern/pbvh.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index 45de1449027..a60f7326b2b 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -948,8 +948,13 @@ static void pbvh_update_normals(PBVH *bvh, PBVHNode **nodes,
return;
}
- if (bvh->type != PBVH_FACES)
+ if (bvh->type != PBVH_FACES) {
+ /* make sure we clean up the flag! */
+ for (n = 0; n < totnode; n++) {
+ nodes[n]->flag &= ~PBVH_UpdateNormals;
+ }
return;
+ }
/* could be per node to save some memory, but also means
* we have to store for each vertex which node it is in */