Restrict loading of ocl and PathSurface to enabling experimental features.

This commit is contained in:
Markus Lampert
2019-10-06 22:13:07 -07:00
parent 891f8953fe
commit 641f615bf5
2 changed files with 1 additions and 6 deletions

View File

@@ -98,6 +98,7 @@ class PathWorkbench (Workbench):
try:
import ocl # pylint: disable=unused-variable
from PathScripts import PathSurfaceGui
threedopcmdlist.append("Path_Surface")
threedcmdgroup = ['Path_3dTools']
FreeCADGui.addCommand('Path_3dTools', PathCommandGroup(threedopcmdlist, QtCore.QT_TRANSLATE_NOOP("Path",'3D Operations')))

View File

@@ -68,12 +68,6 @@ def Startup():
from PathScripts import PathSimpleCopy
from PathScripts import PathSimulatorGui
from PathScripts import PathStop
try:
import ocl
from PathScripts import PathSurfaceGui
except ImportError:
import FreeCAD
FreeCAD.Console.PrintError("OpenCamLib is not working!\n")
from PathScripts import PathToolController
from PathScripts import PathToolControllerGui
from PathScripts import PathToolLibraryManager