Skip to content
Snippets Groups Projects
Commit af86237b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't remesh if the model is empty

parent 7e5ce140
No related branches found
No related tags found
No related merge requests found
......@@ -708,7 +708,8 @@ static void runGmshClient(const std::string &action)
// changed
modelName = GModel::current()->getName();
geometry_reload_cb(0, 0);
if(FlGui::instance()->onelab->meshAuto()){
if(!GModel::current()->empty() &&
FlGui::instance()->onelab->meshAuto()){
mesh_3d_cb(0, 0);
CreateOutputFile(mshFileName, CTX::instance()->mesh.fileFormat);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment