Setting on 89.9 as a limit, enforce in dialog and properties
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
|
||||
|
||||
namespace Part {
|
||||
const App::PropertyQuantityConstraint::Constraints apexRange = {-90.0, 90.0, 0.1};
|
||||
const App::PropertyQuantityConstraint::Constraints apexRange = {-89.9, 89.9, 0.1};
|
||||
const App::PropertyQuantityConstraint::Constraints torusRangeV = {-180.0, 180.0, 1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeU = {0.0, 360.0, 1.0};
|
||||
const App::PropertyQuantityConstraint::Constraints angleRangeV = {-90.0, 90.0, 1.0};
|
||||
|
||||
@@ -1153,7 +1153,7 @@ HelixPrimitive::HelixPrimitive(std::shared_ptr<Ui_DlgPrimitives> ui, Part::Helix
|
||||
ui->helixPitch->setRange(0, INT_MAX);
|
||||
ui->helixHeight->setRange(0, INT_MAX);
|
||||
ui->helixRadius->setRange(0, INT_MAX);
|
||||
ui->helixAngle->setRange(-89.99, 89.99);
|
||||
ui->helixAngle->setRange(-89.9, 89.9);
|
||||
|
||||
if (feature) {
|
||||
ui->helixPitch->setValue(feature->Pitch.getQuantityValue());
|
||||
|
||||
Reference in New Issue
Block a user