Related to T40381,

Cleanup the normal flag or else the smooth tool will work on more and
more nodes as we sculpt.
This commit is contained in:
Antonis Ryakiotakis 2014-05-29 05:04:39 +03:00
parent a6bd6a8366
commit ac0b69233c
1 changed files with 6 additions and 1 deletions

View File

@ -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 */