fontbuild: fixes a minor issue with curveFitPen where != was used to check for None
This commit is contained in:
parent
2aa63385bb
commit
89c57cb6c3
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ def fitBezier(pts,tangent0=None,tangent3=None):
|
|||
TT[i*2+1,j*2+1] = T[i,j+1]
|
||||
pout = pout.reshape((n*2,1),order="C")
|
||||
|
||||
if tangent0 != None and tangent3 != None:
|
||||
if tangent0 is not None and tangent3 is not None:
|
||||
tangentConstraintsT = np.array([
|
||||
[tangent0[1], -tangent0[0], 0, 0],
|
||||
[0, 0, tangent3[1], -tangent3[0]]
|
||||
|
|
|
|||
Reference in a new issue