+ Fallback for meshing dialog if MeshPart fails to load

This commit is contained in:
wmayer 2013-11-27 15:19:52 +01:00
parent 0506a918b2
commit bbc22b90e1

View File

@ -72,9 +72,18 @@ Tessellation::Tessellation(QWidget* parent)
#else
ui->radioButtonNetgen->setChecked(true);
#endif
meshingMethod(buttonGroup->checkedId());
Gui::Command::doCommand(Gui::Command::Doc, "import Mesh, MeshPart");
Gui::Command::doCommand(Gui::Command::Doc, "import Mesh");
try {
Gui::Command::doCommand(Gui::Command::Doc, "import MeshPart");
}
catch(...) {
ui->radioButtonNetgen->setDisabled(true);
ui->radioButtonMefisto->setDisabled(true);
ui->radioButtonStandard->setChecked(true);
}
meshingMethod(buttonGroup->checkedId());
findShapes();
}