[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29034] branches/soc-2010-jwilkins/source/ blender/blenlib/BLI_pbvh.h: Its really fixed this time, I promise :)
Jason Wilkins
Jason.A.Wilkins at gmail.com
Thu May 27 22:47:44 CEST 2010
Revision: 29034
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29034
Author: jwilkins
Date: 2010-05-27 22:47:40 +0200 (Thu, 27 May 2010)
Log Message:
-----------
Its really fixed this time, I promise :)
Modified Paths:
--------------
branches/soc-2010-jwilkins/source/blender/blenlib/BLI_pbvh.h
Modified: branches/soc-2010-jwilkins/source/blender/blenlib/BLI_pbvh.h
===================================================================
--- branches/soc-2010-jwilkins/source/blender/blenlib/BLI_pbvh.h 2010-05-27 20:31:32 UTC (rev 29033)
+++ branches/soc-2010-jwilkins/source/blender/blenlib/BLI_pbvh.h 2010-05-27 20:47:40 UTC (rev 29034)
@@ -158,6 +158,8 @@
int *grid_indices, totgrid, gridsize, *vert_indices, uniq_verts, totvert; \
\
vi.grid= 0; \
+ vi.no= 0; \
+ vi.mvert= 0; \
\
BLI_pbvh_node_get_grids(bvh, node, &grid_indices, &totgrid, NULL, &gridsize, &grids, NULL); \
BLI_pbvh_node_num_verts(bvh, node, &uniq_verts, &totvert); \
@@ -199,18 +201,14 @@
\
for(vi.gx=0; vi.gx<vi.width; vi.gx++, vi.i++) { \
if(vi.grid) { \
- vi.mvert= 0; \
- vi.co= vi.grid->co; \
- vi.no= 0; \
- vi.fno= vi.grid->no; \
- \
+ vi.co= vi.grid->co; \
+ vi.fno= vi.grid->no; \
vi.grid++; \
} \
else { \
vi.mvert= &vi.mverts[vi.vert_indices[vi.gx]]; \
- vi.co= vi.mvert->co; \
- vi.no= vi.mvert->no; \
- vi.fno= 0; \
+ vi.co= vi.mvert->co; \
+ vi.no= vi.mvert->no; \
} \
#define BLI_pbvh_vertex_iter_end \
More information about the Bf-blender-cvs
mailing list