Prevent attempting to create an infinite helix
This commit is contained in:
@@ -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(-90, 90);
|
||||
ui->helixAngle->setRange(-89.99, 89.99);
|
||||
|
||||
if (feature) {
|
||||
ui->helixPitch->setValue(feature->Pitch.getQuantityValue());
|
||||
|
||||
Reference in New Issue
Block a user