Fixing again bug #569 in Draft Offset

This commit is contained in:
Yorik van Havre
2012-03-12 10:27:32 -03:00
parent 1cffe8429e
commit 948b7bfece

View File

@@ -719,7 +719,9 @@ def offsetWire(wire,dvec,bind=False,occ=False):
if occ:
l=abs(dvec.Length)
if not l: return None
if not wire.Wires:
if wire.Wires:
wire = wire.Wires[0]
else:
wire = Part.Wire(edges)
try:
off = wire.makeOffset(l)
@@ -1857,7 +1859,7 @@ def innerSoddyCircle(circle1, circle2, circle3):
else:
print "debug: innerSoddyCircle bad parameters!\n"
# FreeCAD.Console.PrintMessage("debug: innerSoddyCircle bad parameters!\n")
return None
return None
def circleFrom3CircleTangents(circle1, circle2, circle3):
'''