FEM: netgen, add command only if FEM is build with netgen

This commit is contained in:
Bernd Hahnebach
2017-12-15 19:58:43 +01:00
committed by Yorik van Havre
parent 64800bc322
commit 139704ff4c

View File

@@ -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"