From 6ffef47ee83c7d5bf0e5ad24fde4a869323c7fc7 Mon Sep 17 00:00:00 2001 From: donovaly Date: Sat, 22 Feb 2020 18:59:06 +0100 Subject: [PATCH] remove doubled code (is there already a few lines up) --- src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp index 79b7274893..ed2ef47bbf 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp @@ -588,10 +588,6 @@ void TaskFemConstraintFluidBoundary::onButtonDirection(const bool pressed) { Part::Feature* feat = static_cast(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"));