[path] Fix AttributeError when attempting to export holding tags gcode

This commit is contained in:
Sabin Iacob
2017-04-17 21:04:28 +03:00
committed by Yorik van Havre
parent 1815a9ef4d
commit 9df156472a

View File

@@ -1434,6 +1434,7 @@ class CommandPathDressupHoldingTags:
FreeCADGui.doCommand('Gui.ActiveDocument.getObject(obj.Base.Name).Visibility = False')
FreeCADGui.doCommand('obj.ToolController = PathScripts.PathUtils.findToolController(obj)')
FreeCADGui.doCommand('dbo.setup(obj, True)')
FreeCADGui.doCommand('obj.ToolController = PathScripts.PathUtils.findToolController(obj)')
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()