diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 07:36:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-26 07:37:33 +0300 |
commit | b2b609966658d2829191bea1cb642f2b86be2959 (patch) | |
tree | 6df034d3ac5b783c5e02e2aee24c17124994f9c9 /source/blender/editors | |
parent | e990e55eba2aa8734cb328065b1731dc83e39187 (diff) |
Cleanup: redundant cast, unused arguments
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index bec44242931..8f4434fcbc8 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -543,18 +543,18 @@ static void sculpt_vertex_neighbors_get_faces(SculptSession *ss, int index, SculptVertexNeighborIter *iter) { - MeshElemMap *vert_map = &ss->pmap[(int)index]; + MeshElemMap *vert_map = &ss->pmap[index]; iter->size = 0; iter->num_duplicates = 0; iter->capacity = SCULPT_VERTEX_NEIGHBOR_FIXED_CAPACITY; iter->neighbors = iter->neighbors_fixed; - for (int i = 0; i < ss->pmap[(int)index].count; i++) { + for (int i = 0; i < ss->pmap[index].count; i++) { const MPoly *p = &ss->mpoly[vert_map->indices[i]]; uint f_adj_v[2]; - if (poly_get_adj_loops_from_vert(p, ss->mloop, (int)index, f_adj_v) != -1) { + if (poly_get_adj_loops_from_vert(p, ss->mloop, index, f_adj_v) != -1) { for (int j = 0; j < ARRAY_SIZE(f_adj_v); j += 1) { - if (f_adj_v[j] != (int)index) { + if (f_adj_v[j] != index) { sculpt_vertex_neighbor_add(iter, f_adj_v[j]); } } |