diff --git a/src/Mod/Mesh/Gui/RemeshGmsh.cpp b/src/Mod/Mesh/Gui/RemeshGmsh.cpp index 6242b8c3d1..f33129db76 100644 --- a/src/Mod/Mesh/Gui/RemeshGmsh.cpp +++ b/src/Mod/Mesh/Gui/RemeshGmsh.cpp @@ -184,6 +184,9 @@ void GmshWidget::accept() if (writeProject(inpFile, outFile)) { // ./gmsh - -bin -2 /tmp/mesh.geo -o /tmp/best.stl QString proc = d->ui.fileChooser->fileName(); + if (proc.isEmpty()) { + proc = QLatin1String("gmsh"); + } QStringList args; args << QLatin1String("-") << QLatin1String("-bin") diff --git a/src/Mod/Mesh/Gui/RemeshGmsh.ui b/src/Mod/Mesh/Gui/RemeshGmsh.ui index 88c74c7aa5..88f1290e22 100644 --- a/src/Mod/Mesh/Gui/RemeshGmsh.ui +++ b/src/Mod/Mesh/Gui/RemeshGmsh.ui @@ -137,6 +137,9 @@ + + Leave empty to use default gmsh executable + gmshExe