diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-07-24 01:08:27 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-07-24 01:08:27 +0400 |
commit | ca227a94aca7b0eafd88862fa9d79af8d620b069 (patch) | |
tree | aa6f704c36661df5d169372f3138bddf15b99d86 | |
parent | aa6935890ad368163aff49e34d3bf3c281e51c83 (diff) |
== 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)
-rw-r--r-- | source/blender/blenlib/BLI_pbvh.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_pbvh.h b/source/blender/blenlib/BLI_pbvh.h index 2f9f6a54596..614a7d8ca35 100644 --- a/source/blender/blenlib/BLI_pbvh.h +++ b/source/blender/blenlib/BLI_pbvh.h @@ -225,11 +225,7 @@ typedef struct PBVHVertexIter { 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); \ |