mirror of
https://github.com/rsms/inter.git
synced 2024-11-09 06:11:35 +03:00
fixes issue with recent numpy upgrade
This commit is contained in:
parent
2b9c05696f
commit
6070a471f1
@ -388,7 +388,7 @@ def fitBezier(pts, tangent0=None, tangent3=None):
|
||||
])
|
||||
TT = np.concatenate((TT, tangentConstraintsT * 1000))
|
||||
pout = np.concatenate((pout, tangentConstraintsP * 1000))
|
||||
C = np.linalg.lstsq(TT,pout)[0].reshape((2,2), rcond=-1)
|
||||
C = np.linalg.lstsq(TT, pout, rcond=-1)[0].reshape((2,2))
|
||||
return np.array([pts[0], C[0], C[1], pts[-1]])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user