Sketcher: Refactor code relating to dimensional constraint checks
This commit is contained in:
committed by
Yorik van Havre
parent
8e2e5d7b6a
commit
6a1aed66e2
@@ -73,13 +73,7 @@ void EditDatumDialog::customEvent(QEvent*)
|
||||
void EditDatumDialog::exec(bool atCursor)
|
||||
{
|
||||
// Return if constraint doesn't have editable value
|
||||
if (Constr->Type == Sketcher::Distance ||
|
||||
Constr->Type == Sketcher::DistanceX ||
|
||||
Constr->Type == Sketcher::DistanceY ||
|
||||
Constr->Type == Sketcher::Radius ||
|
||||
Constr->Type == Sketcher::Diameter ||
|
||||
Constr->Type == Sketcher::Angle ||
|
||||
Constr->Type == Sketcher::SnellsLaw) {
|
||||
if (Constr->isDimensional()) {
|
||||
|
||||
if (sketch->hasConflicts()) {
|
||||
QMessageBox::critical(qApp->activeWindow(), QObject::tr("Distance constraint"),
|
||||
|
||||
Reference in New Issue
Block a user