From cffe8d19fdf1ecc7bfc683800dee6db67d543bdf Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 3 Mar 2021 17:40:11 +0100 Subject: [PATCH] PD: [skip ci] in the helix task dialog use the value range defined in the helix feature --- src/Mod/PartDesign/App/FeatureHelix.cpp | 2 +- src/Mod/PartDesign/Gui/TaskHelixParameters.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/FeatureHelix.cpp b/src/Mod/PartDesign/App/FeatureHelix.cpp index b542267b56..bdb108f595 100644 --- a/src/Mod/PartDesign/App/FeatureHelix.cpp +++ b/src/Mod/PartDesign/App/FeatureHelix.cpp @@ -73,7 +73,7 @@ PROPERTY_SOURCE(PartDesign::Helix, PartDesign::ProfileBased) // we purposely use not FLT_MAX because this would not be computable const App::PropertyFloatConstraint::Constraints floatTurns = { Precision::Confusion(), INT_MAX, 1.0 }; -const App::PropertyAngle::Constraints floatAngle = { -89.0, 89.0, 1.0 }; +const App::PropertyAngle::Constraints floatAngle = { -89.0, 89.0, 5.0 }; Helix::Helix() { diff --git a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp index 1f78d5760c..bd6e9c3092 100644 --- a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp @@ -135,6 +135,9 @@ TaskHelixParameters::TaskHelixParameters(PartDesignGui::ViewProviderHelix *Helix ui->height->setValue(height); ui->turns->setValue(turns); ui->coneAngle->setValue(angle); + ui->coneAngle->setMinimum(propAngle->getMinimum()); + ui->coneAngle->setMaximum(propAngle->getMaximum()); + ui->coneAngle->setSingleStep(propAngle->getStepSize()); ui->checkBoxLeftHanded->setChecked(leftHanded); ui->checkBoxReversed->setChecked(reversed); ui->inputMode->setCurrentIndex(index);