fixed bug 564 - bug in Draft to Sketch

This commit is contained in:
Yorik van Havre 2012-01-06 13:40:58 -02:00
parent 169abb6f34
commit 30f97b3124

View File

@ -1270,10 +1270,10 @@ def makeSketch(objectslist,autoconstraints=False,addTo=None,name="Sketch"):
if closed:
nobj.addConstraint(Constraint("Coincident",last-1,EndPoint,segs[0],StartPoint))
ok = True
else:
elif obj.isDerivedFrom("Part::Feature"):
if fcgeo.hasOnlyWires(obj.Shape):
for w in obj.Shape.Wires:
for edge in w.Edges:
for edge in fcgeo.sortEdges(w.Edges):
nobj.addGeometry(fcgeo.geom(edge))
if autoconstraints:
last = nobj.GeometryCount