[qu2cu] Fix optimization
Previous one was wrong.
This commit is contained in:
parent
bf1ed91bde
commit
d9f6b82fb9
@ -269,8 +269,8 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False):
|
|||||||
best_sol = i_sol
|
best_sol = i_sol
|
||||||
|
|
||||||
if this_count <= 3:
|
if this_count <= 3:
|
||||||
# Can't get any better than this
|
# Can't get any better than this in the path below
|
||||||
break
|
continue
|
||||||
|
|
||||||
# Fit elevated_quadratics[j:i] into one cubic
|
# Fit elevated_quadratics[j:i] into one cubic
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user