diff --git a/butils.py b/butils.py index b0fb693..1ebdfe4 100644 --- a/butils.py +++ b/butils.py @@ -57,10 +57,10 @@ def get_curve_length(curve_obj, resolution = -1): return total_length def get_curve_line_lengths(curve_obj, resolution = -1): - output = [] + lengths = [] for spline in curve_obj.data.splines: - output.append(spline.calc_length(resolution=resolution)) - return output + lengths.append(spline.calc_length(resolution=resolution)) + return lengths def get_next_line_advance(curve_obj, current_advance, previous_glyph_advance, resolution = -1): curve_line_lengths = get_curve_line_lengths(curve_obj, resolution)