fixed makeWire face parameter treating

Change-Id: If72a3a1615a56064b113b4d4b1f282ad0229b88d
This commit is contained in:
Sergei Krivonos 2016-03-03 18:02:34 +02:00 committed by Yorik van Havre
parent cb51799f60
commit 77753a6df5

View File

@ -766,7 +766,7 @@ def makeAngularDimension(center,angles,p3,normal=None):
FreeCAD.ActiveDocument.recompute() FreeCAD.ActiveDocument.recompute()
return obj return obj
def makeWire(pointslist,closed=False,placement=None,face=True,support=None): def makeWire(pointslist,closed=False,placement=None,face=None,support=None):
'''makeWire(pointslist,[closed],[placement]): Creates a Wire object '''makeWire(pointslist,[closed],[placement]): Creates a Wire object
from the given list of vectors. If closed is True or first from the given list of vectors. If closed is True or first
and last points are identical, the wire is closed. If face is and last points are identical, the wire is closed. If face is
@ -794,7 +794,8 @@ def makeWire(pointslist,closed=False,placement=None,face=True,support=None):
obj.Points = pointslist obj.Points = pointslist
obj.Closed = closed obj.Closed = closed
obj.Support = support obj.Support = support
#obj.MakeFace = face if face != None:
obj.MakeFace = face
if placement: obj.Placement = placement if placement: obj.Placement = placement
if gui: if gui:
_ViewProviderWire(obj.ViewObject) _ViewProviderWire(obj.ViewObject)