diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:11:59 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:11:59 +0300 |
commit | 9316cb33d8290e43833363c423c95ced563d7b58 (patch) | |
tree | 35625a513c89cc1b02fc6ac9e913c7b64826faec /source/blender/editors | |
parent | 102eff0bd45e9bce2d1e98f7e3c7e91f9d36df15 (diff) |
Cleanup: Remove unused variables in transform mesh skin code
Differential Revision: https://developer.blender.org/D9992
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_convert_mesh_skin.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/source/blender/editors/transform/transform_convert_mesh_skin.c b/source/blender/editors/transform/transform_convert_mesh_skin.c index 78f9380f383..f2c35bb1048 100644 --- a/source/blender/editors/transform/transform_convert_mesh_skin.c +++ b/source/blender/editors/transform/transform_convert_mesh_skin.c @@ -48,12 +48,7 @@ * * \{ */ -static void mesh_skin_transdata_create(TransInfo *t, - TransDataBasic *td, - BMEditMesh *em, - BMVert *eve, - const struct TransIslandData *island_data, - const int island_index) +static void mesh_skin_transdata_create(TransDataBasic *td, BMEditMesh *em, BMVert *eve) { BLI_assert(BM_elem_flag_test(eve, BM_ELEM_HIDDEN) == 0); MVertSkin *vs = CustomData_bmesh_get(&em->bm->vdata, eve->head.data, CD_MVERT_SKIN); @@ -190,15 +185,8 @@ void createTransMeshSkin(TransInfo *t) continue; } - int island_index = -1; - if (island_data.island_vert_map) { - const int connected_index = (dists_index && dists_index[a] != -1) ? dists_index[a] : a; - island_index = island_data.island_vert_map[connected_index]; - } - if (mirror_data.vert_map && mirror_data.vert_map[a].index != -1) { - mesh_skin_transdata_create( - t, (TransDataBasic *)td_mirror, em, eve, &island_data, island_index); + mesh_skin_transdata_create((TransDataBasic *)td_mirror, em, eve); int elem_index = mirror_data.vert_map[a].index; BMVert *v_src = BM_vert_at_index(bm, elem_index); @@ -209,7 +197,7 @@ void createTransMeshSkin(TransInfo *t) td_mirror++; } else if (prop_mode || BM_elem_flag_test(eve, BM_ELEM_SELECT)) { - mesh_skin_transdata_create(t, (TransDataBasic *)td, em, eve, &island_data, island_index); + mesh_skin_transdata_create((TransDataBasic *)td, em, eve); if (t->around == V3D_AROUND_LOCAL_ORIGINS) { createSpaceNormal(td->axismtx, eve->no); |