PD: [skip ci] in the helix task dialog use the value range defined in the helix feature

This commit is contained in:
wmayer
2021-03-03 17:40:11 +01:00
parent fc36ab6c64
commit cffe8d19fd
2 changed files with 4 additions and 1 deletions

View File

@@ -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()
{

View File

@@ -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);