Draft: Fixed small regression in Draft2Sketch

This commit is contained in:
Yorik van Havre 2014-08-16 19:40:35 -03:00
parent 6436b29034
commit f0eee59283

View File

@ -3966,7 +3966,7 @@ class Draft2Sketch(Modifier):
if not sel:
return
elif allDraft:
lines = ["Draft.makeSketch(FreeCAD.ActiveDocument."+o.Name+",autoconstraints=True)" for o in sel]
lines = ["Draft.makeSketch(FreeCADGui.Selection.getSelection(),autoconstraints=True)"]
self.commit(translate("draft","Convert to Sketch"),
lines + ['FreeCAD.ActiveDocument.recompute()'])
elif allSketches: