[qu2cu] Fix optimization

4 wouldn't have caused problem really but 3 is correct.
This commit is contained in:
Behdad Esfahbod 2023-02-20 10:29:48 -07:00
parent 51ed6c151f
commit 68c735aa76

View File

@ -298,7 +298,7 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False):
if i_sol < best_sol:
best_sol = i_sol
if i_sol_count == 4:
if i_sol_count == 3:
# Can't get any better than this
break