Code cleanup: remove unused 'skip' field from PBVH iterator.

This commit is contained in:
Nicholas Bishop
2012-02-22 22:41:08 +00:00
parent 444885848d
commit 78e1da961c
2 changed files with 0 additions and 11 deletions

View File

@@ -142,7 +142,6 @@ typedef struct PBVHVertexIter {
int g;
int width;
int height;
int skip;
int gx;
int gy;
int i;
@@ -182,13 +181,6 @@ void pbvh_vertex_iter_init(PBVH *bvh, PBVHNode *node,
vi.width= vi.gridsize; \
vi.height= vi.gridsize; \
vi.grid= vi.grids[vi.grid_indices[vi.g]]; \
vi.skip= 0; \
\
/*if(mode == PVBH_ITER_UNIQUE) { \
vi.grid += subm->grid.offset; \
vi.skip= subm->grid.skip; \
vi.grid -= skip; \
}*/ \
} \
else { \
vi.width= vi.totvert; \
@@ -196,8 +188,6 @@ void pbvh_vertex_iter_init(PBVH *bvh, PBVHNode *node,
} \
\
for(vi.gy=0; vi.gy<vi.height; vi.gy++) { \
if(vi.grid) vi.grid += vi.skip; \
\
for(vi.gx=0; vi.gx<vi.width; vi.gx++, vi.i++) { \
if(vi.grid) { \
vi.co= vi.grid->co; \

View File

@@ -1696,7 +1696,6 @@ void pbvh_vertex_iter_init(PBVH *bvh, PBVHNode *node,
vi->no= 0;
vi->fno= 0;
vi->mvert= 0;
vi->skip= 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);