diff --git a/src/Mod/PartDesign/App/FeaturePad.cpp b/src/Mod/PartDesign/App/FeaturePad.cpp index 95f0fc6ffa..761c5fd965 100644 --- a/src/Mod/PartDesign/App/FeaturePad.cpp +++ b/src/Mod/PartDesign/App/FeaturePad.cpp @@ -69,13 +69,8 @@ Pad::Pad() App::DocumentObjectExecReturn *Pad::execute() { - // Validate parameters double L = Length.getValue(); - if ((std::string(Type.getValueAsString()) == "Length") && (L < Precision::Confusion())) - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Length of pad too small")); double L2 = Length2.getValue(); - if ((std::string(Type.getValueAsString()) == "TwoLengths") && (L < Precision::Confusion())) - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Second length of pad too small")); // if midplane is true, disable reversed and vice versa bool hasMidplane = Midplane.getValue(); diff --git a/src/Mod/PartDesign/App/FeaturePocket.cpp b/src/Mod/PartDesign/App/FeaturePocket.cpp index 193cfab2a1..b85b7ed385 100644 --- a/src/Mod/PartDesign/App/FeaturePocket.cpp +++ b/src/Mod/PartDesign/App/FeaturePocket.cpp @@ -76,14 +76,8 @@ App::DocumentObjectExecReturn *Pocket::execute() (!UpToFace.getValue() && Length.getValue() > Precision::Confusion())) Type.setValue("Length"); - // Validate parameters double L = Length.getValue(); - if ((std::string(Type.getValueAsString()) == "Length") && (L < Precision::Confusion())) - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Pocket: Length of pocket too small")); - double L2 = Length2.getValue(); - if ((std::string(Type.getValueAsString()) == "TwoLengths") && (L < Precision::Confusion())) - return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Pocket: Second length of pocket too small")); TopoDS_Shape profileshape; try {