PD: [skip ci] in the helix task dialog use the value range defined in the helix feature
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user