diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-10 20:07:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-10 20:07:03 +0300 |
commit | 334b1cf92f25ac25f704b1346ac0aba365a03869 (patch) | |
tree | c217523f48e24a84fcfd9305f5c61c3e5d4e6ad6 /source/blender/editors/transform/transform_snap_object.c | |
parent | 55389d4899d4ebea090dbd9579179455d04900b7 (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender/editors/transform/transform_snap_object.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 8a336f3b5b4..c4e1d777944 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -848,7 +848,6 @@ static void cb_bvert_no_copy( static void cb_medge_verts_get( const int index, int v_index[2], const BVHTreeFromMesh *data) { - const MVert *vert = data->vert; const MEdge *edge = &data->edge[index]; v_index[0] = edge->v1; @@ -1228,7 +1227,7 @@ static bool cb_walk_leaf_snap_vert( struct Nearest2dUserData *data = userdata; struct Nearest2dPrecalc *neasrest_precalc = &data->data_precalc; - float *co; + const float *co; data->get_vert_co(index, &co, data->userdata); if (test_projected_vert_dist( @@ -1256,7 +1255,6 @@ static bool cb_walk_leaf_snap_edge( data->get_edge_verts_index(index, vindex, data->userdata); if (data->snap_to == SCE_SNAP_MODE_EDGE) { - bool vert_snapped = false; const float *v_pair[2]; data->get_vert_co(vindex[0], &v_pair[0], data->userdata); data->get_vert_co(vindex[1], &v_pair[1], data->userdata); @@ -1746,8 +1744,8 @@ static bool snapMesh( if (sod->has_looptris && treedata->tree == NULL) { BKE_bvhtree_from_mesh_get(treedata, me, BVHTREE_FROM_LOOPTRI, 4); - - if (sod->has_looptris = treedata->tree != NULL) { + sod->has_looptris = (treedata->tree != NULL); + if (sod->has_looptris) { /* Make sure that the array of edges is referenced in the callbacks. */ treedata->edge = me->medge; /* CustomData_get_layer(&me->edata, CD_MEDGE);? */ } |