Fixes for coverity CID 176063 and 176065.

This commit is contained in:
Markus Lampert
2018-07-08 16:34:36 -07:00
committed by Yorik van Havre
parent 062fd6735b
commit ae49612447

View File

@@ -53,9 +53,9 @@ def debugEdge(label, e):
Currently lines and arcs are supported.'''
if not PrintWireDebug:
return
p0 = e.valueAt(e.FirstParameter)
p1 = e.valueAt(e.LastParameter)
if Part.Line == type(e.Curve):
p0 = e.valueAt(e.FirstParameter)
p1 = e.valueAt(e.LastParameter)
print("%s Part.makeLine((%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f))" % (label, p0.x, p0.y, p0.z, p1.x, p1.y, p1.z))
elif Part.Circle == type(e.Curve):
r = e.Curve.Radius