Fix naming in the PBVH neighbor iterator macro
The only possible name for the iterator was ni, this should fix that. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7774
This commit is contained in:
parent
5f63344e84
commit
9b0f65c4a6
|
@ -120,7 +120,7 @@ void SCULPT_vertex_neighbors_get(struct SculptSession *ss,
|
|||
SCULPT_vertex_neighbors_get(ss, v_index, false, &neighbor_iterator); \
|
||||
for (neighbor_iterator.i = 0; neighbor_iterator.i < neighbor_iterator.size; \
|
||||
neighbor_iterator.i++) { \
|
||||
neighbor_iterator.index = ni.neighbors[ni.i];
|
||||
neighbor_iterator.index = neighbor_iterator.neighbors[neighbor_iterator.i];
|
||||
|
||||
/* Iterate over neighboring and duplicate vertices (for PBVH_GRIDS). Duplicates come
|
||||
* first since they are nearest for floodfill. */
|
||||
|
@ -128,8 +128,8 @@ void SCULPT_vertex_neighbors_get(struct SculptSession *ss,
|
|||
SCULPT_vertex_neighbors_get(ss, v_index, true, &neighbor_iterator); \
|
||||
for (neighbor_iterator.i = neighbor_iterator.size - 1; neighbor_iterator.i >= 0; \
|
||||
neighbor_iterator.i--) { \
|
||||
neighbor_iterator.index = ni.neighbors[ni.i]; \
|
||||
neighbor_iterator.is_duplicate = (ni.i >= \
|
||||
neighbor_iterator.index = neighbor_iterator.neighbors[neighbor_iterator.i]; \
|
||||
neighbor_iterator.is_duplicate = (neighbor_iterator.i >= \
|
||||
neighbor_iterator.size - neighbor_iterator.num_duplicates);
|
||||
|
||||
#define SCULPT_VERTEX_NEIGHBORS_ITER_END(neighbor_iterator) \
|
||||
|
|
Loading…
Reference in New Issue