From 4730d981fee138996d92320a42fd50970f500a5f Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 5 Aug 2024 10:19:51 +0200 Subject: [PATCH] use more descriptive variable names --- butils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)