[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30676] branches/soc-2010-nicolasbishop/ source/blender/blenlib/BLI_pbvh.h: == Sculpt ==

Nicholas Bishop nicholasbishop at gmail.com
Fri Jul 23 23:08:28 CEST 2010


Revision: 30676
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30676
Author:   nicholasbishop
Date:     2010-07-23 23:08:27 +0200 (Fri, 23 Jul 2010)

Log Message:
-----------
== Sculpt ==

Fix for some brushes exploding

* Replaced partial initialization of pbvh iterator with memset (this was how it was originally, probably changed after merging from trunk some time I guess)

Modified Paths:
--------------
    branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h

Modified: branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h	2010-07-23 20:57:52 UTC (rev 30675)
+++ branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h	2010-07-23 21:08:27 UTC (rev 30676)
@@ -225,11 +225,7 @@
 		int *grid_indices, totgrid, gridsize, *vert_indices, uniq_verts, totvert; \
 		struct GridKey *gridkey; \
 		\
-		vi.grid= 0; \
-		vi.no= 0; \
-		vi.fno= 0; \
-		vi.mvert= 0; \
-		vi.skip= 0; \
+		memset(&vi, 0, sizeof(PBVHVertexIter)); \
 		\
 		BLI_pbvh_node_get_grids(bvh, node, &grid_indices, &totgrid, NULL, &gridsize, &grids, NULL, &gridkey); \
 		BLI_pbvh_node_num_verts(bvh, node, &uniq_verts, &totvert); \





More information about the Bf-blender-cvs mailing list