Merge pull request #2329 from mlampert/bugfix/ocl-import-recovery

Path: Fixed import of ocl
This commit is contained in:
sliptonic
2019-07-08 16:24:09 -05:00
committed by GitHub

View File

@@ -90,6 +90,7 @@ class PathWorkbench (Workbench):
engravecmdgroup = ['Path_EngraveTools']
FreeCADGui.addCommand('Path_EngraveTools', PathCommandGroup(engravecmdlist, QtCore.QT_TRANSLATE_NOOP("Path", 'Engraving Operations')))
threedcmdgroup = threedopcmdlist
if PathPreferences.experimentalFeaturesEnabled():
projcmdlist.append("Path_Sanity")
prepcmdlist.append("Path_Shape")
@@ -103,9 +104,6 @@ class PathWorkbench (Workbench):
except ImportError:
FreeCAD.Console.PrintError("OpenCamLib is not working!\n")
else:
threedcmdgroup = threedopcmdlist
self.appendToolbar(QtCore.QT_TRANSLATE_NOOP("Path", "Project Setup"), projcmdlist)
self.appendToolbar(QtCore.QT_TRANSLATE_NOOP("Path", "Tool Commands"), toolcmdlist)
self.appendToolbar(QtCore.QT_TRANSLATE_NOOP("Path", "New Operations"), twodopcmdlist+engravecmdgroup+threedcmdgroup)