diff --git a/src/Mod/PartDesign/App/FeaturePocket.cpp b/src/Mod/PartDesign/App/FeaturePocket.cpp index b0de73ff52..4e1ddfa6fd 100644 --- a/src/Mod/PartDesign/App/FeaturePocket.cpp +++ b/src/Mod/PartDesign/App/FeaturePocket.cpp @@ -71,6 +71,10 @@ Pocket::Pocket() ADD_PROPERTY_TYPE(Offset,(0.0),"Pocket",App::Prop_None,"Offset from face in which pocket will end"); static const App::PropertyQuantityConstraint::Constraints signedLengthConstraint = {-DBL_MAX, DBL_MAX, 1.0}; Offset.setConstraints ( &signedLengthConstraint ); + + // Remove the constraints and keep the type to allow to accept negative values + // https://forum.freecadweb.org/viewtopic.php?f=3&t=52075&p=448410#p447636 + Length2.setConstraints(nullptr); } short Pocket::mustExecute() const diff --git a/src/Mod/PartDesign/Gui/TaskPocketParameters.ui b/src/Mod/PartDesign/Gui/TaskPocketParameters.ui index e5c29c05fe..29ea32605f 100644 --- a/src/Mod/PartDesign/Gui/TaskPocketParameters.ui +++ b/src/Mod/PartDesign/Gui/TaskPocketParameters.ui @@ -104,9 +104,6 @@ false - - 0.000000000000000 -