issue 0003832: Editing thickness in Part or PartDesign resets join type to always being Arc

This commit is contained in:
wmayer
2019-02-16 16:30:46 +01:00
parent 7da9b674fc
commit 36dc7b4242

View File

@@ -42,6 +42,7 @@
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include <Base/Tools.h>
#include <App/Application.h>
#include <App/Document.h>
#include <App/DocumentObject.h>
@@ -97,11 +98,27 @@ ThicknessWidget::ThicknessWidget(Part::Thickness* thickness, QWidget* parent)
d->thickness = thickness;
d->ui.setupUi(this);
d->ui.labelOffset->setText(tr("Thickness"));
d->ui.fillOffset->hide();
QSignalBlocker blockOffset(d->ui.spinOffset);
d->ui.spinOffset->setRange(-INT_MAX, INT_MAX);
d->ui.spinOffset->setSingleStep(0.1);
d->ui.spinOffset->setValue(d->thickness->Value.getValue());
d->ui.labelOffset->setText(tr("Thickness"));
d->ui.fillOffset->hide();
int mode = d->thickness->Mode.getValue();
d->ui.modeType->setCurrentIndex(mode);
int join = d->thickness->Join.getValue();
d->ui.joinType->setCurrentIndex(join);
QSignalBlocker blockIntSct(d->ui.intersection);
bool intsct = d->thickness->Intersection.getValue();
d->ui.intersection->setChecked(intsct);
QSignalBlocker blockSelfInt(d->ui.selfIntersection);
bool selfint = d->thickness->SelfIntersection.getValue();
d->ui.selfIntersection->setChecked(selfint);
}
ThicknessWidget::~ThicknessWidget()