Nicholas, I'm guessing this is because you've changed the iterator in your branch somehow so that it has more fields or uses them differently.  I made this change because memset was taking a noticeable portion of my profile times so I eliminated as many as I could (although in this case it is probably not a huge problem as it gets called once per dab).     <br>
<br><div class="gmail_quote">On Fri, Jul 23, 2010 at 4:08 PM, Nicholas Bishop <span dir="ltr"><<a href="mailto:nicholasbishop@gmail.com">nicholasbishop@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Revision: 30676<br>
          <a href="http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30676" target="_blank">http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30676</a><br>

Author:   nicholasbishop<br>
Date:     2010-07-23 23:08:27 +0200 (Fri, 23 Jul 2010)<br>
<br>
Log Message:<br>
-----------<br>
== Sculpt ==<br>
<br>
Fix for some brushes exploding<br>
<br>
* Replaced partial initialization of pbvh iterator with memset (this was how it was originally, probably changed after merging from trunk some time I guess)<br>
<br>
Modified Paths:<br>
--------------<br>
    branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h<br>
<br>
Modified: branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h<br>
===================================================================<br>
--- branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h   2010-07-23 20:57:52 UTC (rev 30675)<br>
+++ branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h   2010-07-23 21:08:27 UTC (rev 30676)<br>
@@ -225,11 +225,7 @@<br>
                int *grid_indices, totgrid, gridsize, *vert_indices, uniq_verts, totvert; \<br>
                struct GridKey *gridkey; \<br>
                \<br>
-               vi.grid= 0; \<br>
-               <a href="http://vi.no" target="_blank">vi.no</a>= 0; \<br>
-               vi.fno= 0; \<br>
-               vi.mvert= 0; \<br>
-               vi.skip= 0; \<br>
+               memset(&vi, 0, sizeof(PBVHVertexIter)); \<br>
                \<br>
                BLI_pbvh_node_get_grids(bvh, node, &grid_indices, &totgrid, NULL, &gridsize, &grids, NULL, &gridkey); \<br>
                BLI_pbvh_node_num_verts(bvh, node, &uniq_verts, &totvert); \<br>
<br>
<br>
_______________________________________________<br>
Bf-blender-cvs mailing list<br>
<a href="mailto:Bf-blender-cvs@blender.org">Bf-blender-cvs@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-blender-cvs" target="_blank">http://lists.blender.org/mailman/listinfo/bf-blender-cvs</a><br>
</blockquote></div><br>