Draft: Fixed small regression in Draft2Sketch
This commit is contained in:
parent
6436b29034
commit
f0eee59283
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user