Skip to content

Commit

Permalink
+ Fallback for meshing dialog if MeshPart fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 27, 2013
1 parent 0506a91 commit bbc22b9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Mod/MeshPart/Gui/Tessellation.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit bbc22b9

Please sign in to comment.