Part & PartDesign Cone: allow equal radii (#12219)
* PartDesign_Cone: allow equal radii * fix R2 < R1 * Part_Cone: allow equal radii
This commit is contained in:
committed by
GitHub
parent
51f546f1f6
commit
1eb0444bd5
@@ -755,12 +755,6 @@ bool TaskBoxPrimitives::setPrimitive(App::DocumentObject *obj)
|
||||
break;
|
||||
|
||||
case 3: // cone
|
||||
// the cone radii must not be equal
|
||||
if (ui->coneRadius1->value().getValue() == ui->coneRadius2->value().getValue()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("Cone radii are equal"),
|
||||
tr("The radii for cones must not be equal!"));
|
||||
return false;
|
||||
}
|
||||
cmd = QString::fromLatin1(
|
||||
"%1.Radius1='%2'\n"
|
||||
"%1.Radius2='%3'\n"
|
||||
|
||||
Reference in New Issue
Block a user