Draft: Fixed clone bug - fixes #3066

This commit is contained in:
Yorik van Havre
2017-06-02 23:43:47 -03:00
parent 369cc735e1
commit 83095ca574

View File

@@ -4836,6 +4836,7 @@ class Draft_Clone(Modifier):
self.view.removeEventCallback("SoEvent",self.call)
if FreeCADGui.Selection.getSelection():
l = len(FreeCADGui.Selection.getSelection())
FreeCADGui.addModule("Draft")
FreeCAD.ActiveDocument.openTransaction("Clone")
for obj in FreeCADGui.Selection.getSelection():
FreeCADGui.doCommand("Draft.clone(FreeCAD.ActiveDocument."+obj.Name+")")