diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-29 06:04:39 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-29 06:04:39 +0400 |
commit | ac0b69233cacf86aff8a3417b6b69a562eb0f964 (patch) | |
tree | 22f6b27961670843bebad2e5d5e25714884b88c7 /source | |
parent | a6bd6a8366044a377026d699c38672078cd335d8 (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')
-rw-r--r-- | source/blender/blenkernel/intern/pbvh.c | 7 |
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 */ |