Skip to content

Commit

Permalink
remove doubled code
Browse files Browse the repository at this point in the history
(is there already a few lines up)
  • Loading branch information
donovaly authored and berndhahnebach committed Feb 23, 2020
1 parent af7941a commit 6ffef47
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp
Expand Up @@ -588,10 +588,6 @@ void TaskFemConstraintFluidBoundary::onButtonDirection(const bool pressed) {
Part::Feature* feat = static_cast<Part::Feature*>(obj);
TopoDS_Shape ref = feat->Shape.getShape().getSubShape(subNamesElement.c_str());

if (TypeName.substr(0, 4).compare(std::string("Part")) != 0) {
QMessageBox::warning(this, tr("Selection error"), tr("Selected object is not a part!"));
return;
}
if (subNamesElement.substr(0, 4) == "Face") {
if (!Fem::Tools::isPlanar(TopoDS::Face(ref))) {
QMessageBox::warning(this, tr("Selection error"), tr("Only planar faces can be picked for 3D"));
Expand Down

0 comments on commit 6ffef47

Please sign in to comment.