From 223fde0d88511ff615b692f4ae3999bb7fd96c41 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 4731b45380..ad7db501b6 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(); }