diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-09 18:55:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-09 19:22:46 +0300 |
commit | cb0cab48efda03eb4f7f4a3c097be09212fa4fa0 (patch) | |
tree | a2f0e958e83aaf1a6f04560b08816274eebb8053 /source/blender/blenkernel/intern | |
parent | 029fb002ddac05b2ce05f7f199068e4fdd0b0813 (diff) |
Cleanup: redundant/unused assignments
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 5 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index f7eca689241..65cdb8503a4 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -3192,7 +3192,6 @@ static void calchandleNurb_intern(BezTriple *bezt, float pt[3]; float dvec_a[3], dvec_b[3]; float len, len_a, len_b; - float len_ratio; const float eps = 1e-5; /* assume normal handle until we check */ @@ -3244,8 +3243,6 @@ static void calchandleNurb_intern(BezTriple *bezt, len_b = 1.0f; } - len_ratio = len_a / len_b; - if (ELEM(bezt->h1, HD_AUTO, HD_AUTO_ANIM) || ELEM(bezt->h2, HD_AUTO, HD_AUTO_ANIM)) { /* auto */ float tvec[3]; tvec[0] = dvec_b[0] / len_b + dvec_a[0] / len_a; @@ -3378,7 +3375,7 @@ static void calchandleNurb_intern(BezTriple *bezt, len_b = 1.0f; } - len_ratio = len_a / len_b; + const float len_ratio = len_a / len_b; if (bezt->f1 & handle_sel_flag) { /* order of calculation */ if (ELEM(bezt->h2, HD_ALIGN, HD_ALIGN_DOUBLESIDE)) { /* aligned */ diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index d8d9675b42b..710dfdaf137 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -1226,8 +1226,6 @@ static void layerInterp_mvert_skin(const void **sources, int count, void *dest) { - MVertSkin *vs_dst = dest; - float radius[3]; zero_v3(radius); @@ -1239,7 +1237,7 @@ static void layerInterp_mvert_skin(const void **sources, } /* Delay writing to the destination in case dest is in sources. */ - vs_dst = dest; + MVertSkin *vs_dst = dest; copy_v3_v3(vs_dst->radius, radius); vs_dst->flag &= ~MVERT_SKIN_ROOT; } |