diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-11 23:14:26 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-11 23:14:26 +0300 |
commit | 90b8df8a99d130319d37bf725b1b24e2a31be1a2 (patch) | |
tree | ead74bf3347086e46e2db6f2f7734af40c173741 /source/blender | |
parent | 18b1d1af9540720bcc5af9858be2de33733bbabe (diff) |
Cleanup: Remove unecessary variables
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index a26643419a9..cfed297b78d 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -492,10 +492,8 @@ static void create_mesh_bmvert(BMesh *bm, VMesh *vm, int i, int j, int k, BMVert static void copy_mesh_vert(VMesh *vm, int ito, int jto, int kto, int ifrom, int jfrom, int kfrom) { - NewVert *nvto, *nvfrom; - - nvto = mesh_vert(vm, ito, jto, kto); - nvfrom = mesh_vert(vm, ifrom, jfrom, kfrom); + NewVert *nvto = mesh_vert(vm, ito, jto, kto); + NewVert *nvfrom = mesh_vert(vm, ifrom, jfrom, kfrom); nvto->v = nvfrom->v; copy_v3_v3(nvto->co, nvfrom->co); } @@ -4394,11 +4392,8 @@ static void snap_to_pipe_profile(BoundVert *vpipe, bool midline, float co[3]) Profile *pro = &vpipe->profile; EdgeHalf *e = vpipe->ebev; - float va[3], vb[3]; - copy_v3_v3(va, pro->start); - copy_v3_v3(vb, pro->end); - if (compare_v3v3(va, vb, BEVEL_EPSILON_D)) { - copy_v3_v3(co, va); + if (compare_v3v3(pro->start, pro->end, BEVEL_EPSILON_D)) { + copy_v3_v3(co, pro->start); return; } @@ -4408,8 +4403,8 @@ static void snap_to_pipe_profile(BoundVert *vpipe, bool midline, float co[3]) plane_from_point_normal_v3(plane, co, edir); float va0[3], vb0[3], vmid0[3]; - closest_to_plane_v3(va0, plane, va); - closest_to_plane_v3(vb0, plane, vb); + closest_to_plane_v3(va0, plane, pro->start); + closest_to_plane_v3(vb0, plane, pro->end); closest_to_plane_v3(vmid0, plane, pro->middle); float m[4][4], minv[4][4]; |