Skip to content

Commit

Permalink
Restrict loading of ocl and PathSurface to enabling experimental feat…
Browse files Browse the repository at this point in the history
…ures.
  • Loading branch information
mlampert committed Oct 14, 2019
1 parent 891f895 commit 641f615
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions src/Mod/Path/InitGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def Initialize(self):

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')))
Expand Down
6 changes: 0 additions & 6 deletions src/Mod/Path/PathScripts/PathGuiInit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 641f615

Please sign in to comment.