diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index b7c1533c7d..1fa090b2f9 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -806,7 +806,7 @@ class _Roof(ArchComponent.Component): base = self.shps.pop() for s in self.shps: base = base.fuse(s) - base = self.processSubShapes(obj, base) + base = self.processSubShapes(obj, base, pl) self.applyShape(obj, base, pl, allownosolid = True) ## subVolume @@ -819,7 +819,7 @@ class _Roof(ArchComponent.Component): self.sub.Placement = pl elif base: - base = self.processSubShapes(obj, base) + base = self.processSubShapes(obj, base, pl) self.applyShape(obj, base, pl, allownosolid = True) else: FreeCAD.Console.PrintMessage(translate("Arch", "Unable to create a roof")) diff --git a/src/Mod/PartDesign/App/FeaturePad.cpp b/src/Mod/PartDesign/App/FeaturePad.cpp index 28c9b6cc8a..c7a4576f51 100644 --- a/src/Mod/PartDesign/App/FeaturePad.cpp +++ b/src/Mod/PartDesign/App/FeaturePad.cpp @@ -74,6 +74,10 @@ Pad::Pad() ADD_PROPERTY_TYPE(Offset, (0.0), "Pad", App::Prop_None, "Offset from face in which pad 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 Pad::mustExecute() const 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/TaskPadParameters.ui b/src/Mod/PartDesign/Gui/TaskPadParameters.ui index a24541cbb5..375986c44e 100644 --- a/src/Mod/PartDesign/Gui/TaskPadParameters.ui +++ b/src/Mod/PartDesign/Gui/TaskPadParameters.ui @@ -234,9 +234,6 @@ the sketch plane's normal vector will be used false - - 0.000000000000000 - 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 -