From ca03e647769f37a3f379c4580a5ddedfb0394d07 Mon Sep 17 00:00:00 2001 From: donovaly Date: Sat, 8 Aug 2020 04:07:12 +0200 Subject: [PATCH] [PD] bind expression to pad offset It is strangely not possible to use an expression for a pad offset, but this works fine, see the forum for an example. Thus allow this. --- src/Mod/PartDesign/Gui/TaskPadParameters.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp index 12e11f43da..2b86ac2fe9 100644 --- a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp @@ -96,6 +96,7 @@ TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView, QWidget *parent, // Bind input fields to properties ui->lengthEdit->bind(pcPad->Length); ui->lengthEdit2->bind(pcPad->Length2); + ui->offsetEdit->bind(pcPad->Offset); ui->checkBoxMidplane->setChecked(midplane); // According to bug #0000521 the reversed option // shouldn't be de-activated if the pad has a support face