Skip to content

Commit

Permalink
Merge pull request #4325 from machste/fix_simple_copy
Browse files Browse the repository at this point in the history
Path: Fix creating simple copy
  • Loading branch information
sliptonic committed Jan 28, 2021
2 parents 569817d + fd2f2d8 commit 4db83a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Mod/Path/PathScripts/PathSimpleCopy.py
Expand Up @@ -67,8 +67,7 @@ def Activated(self):

FreeCADGui.addModule("PathScripts.PathUtils")
FreeCADGui.addModule("PathScripts.PathCustom")
FreeCADGui.doCommand('obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython","' + selection[0].Name + '_SimpleCopy")')
FreeCADGui.doCommand('PathScripts.PathCustom.ObjectCustom(obj)')
FreeCADGui.doCommand('obj = PathScripts.PathCustom.Create("' + selection[0].Name + '_SimpleCopy")')
FreeCADGui.doCommand('obj.ViewObject.Proxy = 0')
FreeCADGui.doCommand('obj.Gcode = [c.toGCode() for c in srcpath.Commands]')
FreeCADGui.doCommand('PathScripts.PathUtils.addToJob(obj)')
Expand Down

0 comments on commit 4db83a4

Please sign in to comment.