[Bf-blender-cvs] [ac0b692] master: Related to T40381,
Antony Riakiotakis
noreply at git.blender.org
Thu May 29 04:04:53 CEST 2014
Commit: ac0b69233cacf86aff8a3417b6b69a562eb0f964
Author: Antony Riakiotakis
Date: Thu May 29 05:04:39 2014 +0300
https://developer.blender.org/rBac0b69233cacf86aff8a3417b6b69a562eb0f964
Related to T40381,
Cleanup the normal flag or else the smooth tool will work on more and
more nodes as we sculpt.
===================================================================
M source/blender/blenkernel/intern/pbvh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index 45de144..a60f732 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 */
More information about the Bf-blender-cvs
mailing list