From bbc22b90e17c733266045f2f85f67d1a10f05efc Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 27 Nov 2013 15:19:52 +0100 Subject: [PATCH] + Fallback for meshing dialog if MeshPart fails to load --- src/Mod/MeshPart/Gui/Tessellation.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Mod/MeshPart/Gui/Tessellation.cpp b/src/Mod/MeshPart/Gui/Tessellation.cpp index 4731b4538..ad7db501b 100644 --- a/src/Mod/MeshPart/Gui/Tessellation.cpp +++ b/src/Mod/MeshPart/Gui/Tessellation.cpp @@ -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(); }