From 139704ff4c18d0538e37b18e6276ebcec01d9009 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 15 Dec 2017 19:58:43 +0100 Subject: [PATCH] FEM: netgen, add command only if FEM is build with netgen --- src/Mod/Fem/Gui/Workbench.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp index a2073994fc..51d69913ab 100755 --- a/src/Mod/Fem/Gui/Workbench.cpp +++ b/src/Mod/Fem/Gui/Workbench.cpp @@ -93,8 +93,10 @@ Gui::ToolBarItem* Workbench::setupToolBars() const Gui::ToolBarItem* mesh = new Gui::ToolBarItem(root); mesh->setCommand("Mesh"); - *mesh << "FEM_MeshNetgenFromShape" - << "FEM_MeshGmshFromShape" +#ifdef FCWithNetgen + *mesh << "FEM_MeshNetgenFromShape"; +#endif + *mesh << "FEM_MeshGmshFromShape" << "Separator" << "FEM_MeshBoundaryLayer" << "FEM_MeshRegion" @@ -205,8 +207,10 @@ Gui::MenuItem* Workbench::setupMenuBar() const Gui::MenuItem* mesh = new Gui::MenuItem; root->insertItem(item, mesh); mesh->setCommand("M&esh"); - *mesh << "FEM_MeshNetgenFromShape" - << "FEM_MeshGmshFromShape" +#ifdef FCWithNetgen + *mesh << "FEM_MeshNetgenFromShape"; +#endif + *mesh << "FEM_MeshGmshFromShape" << "Separator" << "FEM_MeshBoundaryLayer" << "FEM_MeshRegion"