Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Draft: Solved duplication problem - Fixed #2304
  • Loading branch information
yorikvanhavre committed Dec 5, 2018
1 parent 69328ae commit 7159d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Draft/DraftTools.py
Expand Up @@ -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()
Expand Down

0 comments on commit 7159d38

Please sign in to comment.