Skip to content
Permalink
Browse files

Draft: Solved duplication problem - Fixed #2304

  • Loading branch information...
yorikvanhavre committed Dec 5, 2018
1 parent 69328ae commit 7159d38e82f4c1125f27875fa59455dde31773a7
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Mod/Draft/DraftTools.py
@@ -4973,8 +4973,11 @@ def proceed(self):
l = len(FreeCADGui.Selection.getSelection())
FreeCADGui.addModule("Draft")
FreeCAD.ActiveDocument.openTransaction("Clone")
nonRepeatList = []
for obj in FreeCADGui.Selection.getSelection():
FreeCADGui.doCommand("Draft.clone(FreeCAD.ActiveDocument."+obj.Name+")")
if obj not in nonRepeatList:
FreeCADGui.doCommand("Draft.clone(FreeCAD.ActiveDocument."+obj.Name+")")
nonRepeatList.append(obj)
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
FreeCADGui.Selection.clearSelection()

0 comments on commit 7159d38

Please sign in to comment.
You can’t perform that action at this time.