From 293b9263ada629748fb1694f5f165535c60509b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Cerc=C3=B3s=20Pita?= Date: Tue, 21 May 2013 08:24:58 -0400 Subject: [PATCH] Disabled simulations stuff for the master branch --- src/Mod/Ship/InitGui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Ship/InitGui.py b/src/Mod/Ship/InitGui.py index 17aa80443..8fdf24c6c 100644 --- a/src/Mod/Ship/InitGui.py +++ b/src/Mod/Ship/InitGui.py @@ -51,6 +51,7 @@ class ShipWorkbench ( Workbench ): # Simulation stuff only if pyOpenCL & numpy are present hasOpenCL = True hasNumpy = True + hasSim = False # In development, activate it only for development purposes try: import pyopencl except ImportError: @@ -65,7 +66,7 @@ class ShipWorkbench ( Workbench ): msg = QtGui.QApplication.translate("ship_console", "numpy not installed, simulations stuff will disabled therefore", None,QtGui.QApplication.UnicodeUTF8) FreeCAD.Console.PrintMessage(msg + '\n') - if hasOpenCL and hasNumpy: + if hasOpenCL and hasNumpy and hasSim: simlist = ["Ship_CreateSim", "Ship_RunSim", "Ship_StopSim", "Ship_TrackSim"] self.appendToolbar(str(QtCore.QT_TRANSLATE_NOOP("Ship", "Simulation")),simlist) self.appendMenu(str(QtCore.QT_TRANSLATE_NOOP("Ship", "Simulation")),simlist)