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 | |
parent | e990e55eba2aa8734cb328065b1731dc83e39187 (diff) |
Cleanup: redundant cast, unused arguments
-rw-r--r-- | source/blender/blenkernel/intern/volume.cc | 4 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/volume.cc b/source/blender/blenkernel/intern/volume.cc index c568cb66cc5..6e00a942283 100644 --- a/source/blender/blenkernel/intern/volume.cc +++ b/source/blender/blenkernel/intern/volume.cc @@ -856,7 +856,7 @@ void BKE_volume_grids_backup_restore(Volume *volume, VolumeGridVector *grids, co volume->runtime.grids = grids; } #else - UNUSED_VARS(volume, grids); + UNUSED_VARS(volume, grids, filepath); #endif } @@ -967,7 +967,7 @@ void BKE_volume_grid_unload(const Volume *volume, VolumeGrid *grid) const char *volume_name = volume->id.name + 2; grid->unload(volume_name); #else - UNUSED_VARS(grid); + UNUSED_VARS(volume, grid); #endif } 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]); } } |