use more descriptive variable names

This commit is contained in:
themancalledjakob 2024-08-05 10:19:51 +02:00
parent a15c73a169
commit 4730d981fe

View file

@ -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)