diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-15 06:35:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-15 06:36:16 +0300 |
commit | 8863fc65ca3deb6ba3ef7c8a3976b7d4b7661c30 (patch) | |
tree | b7a72f0b1aac20098a6bd20acbdef13aaae1637c /source/blender/blenkernel/intern/gpencil.c | |
parent | 96ce32dca6ab92ac9fbd807fd50525cc5e50c636 (diff) |
Cleanup: unused argument, variable warnings
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c index df18f89da6f..15532233a76 100644 --- a/source/blender/blenkernel/intern/gpencil.c +++ b/source/blender/blenkernel/intern/gpencil.c @@ -1931,16 +1931,14 @@ bool BKE_gpencil_split_stroke(bGPDframe *gpf, */ bool BKE_gpencil_shrink_stroke(bGPDstroke *gps, const float dist) { - bGPDspoint *pt = gps->points, *last_pt, *second_last, *next_pt; + bGPDspoint *pt = gps->points, *second_last; int i; if (gps->totpoints < 2 || dist < FLT_EPSILON) { return false; } - last_pt = &pt[gps->totpoints - 1]; second_last = &pt[gps->totpoints - 2]; - next_pt = &pt[1]; float len1, this_len1, cut_len1; float len2, this_len2, cut_len2; @@ -1950,7 +1948,6 @@ bool BKE_gpencil_shrink_stroke(bGPDstroke *gps, const float dist) i = 1; while (len1 < dist && gps->totpoints > i - 1) { - next_pt = &pt[i]; this_len1 = len_v3v3(&pt[i].x, &pt[i + 1].x); len1 += this_len1; cut_len1 = len1 - dist; |