PD: [skip ci] do not pop-up dialog when creating a body while another body is selected

This commit is contained in:
wmayer
2021-02-19 21:44:48 +01:00
parent 0d97fb6f5a
commit eb240c219c

View File

@@ -127,9 +127,7 @@ void CmdPartDesignBody::activated(int iMsg)
baseFeature = nullptr;
}
else if ( baseFeature->isDerivedFrom ( Part::BodyBase::getClassTypeId() ) ) {
// Prevent creating bodies based on bodies
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Bad base feature"),
QObject::tr("Body can't be based on another body."));
// Prevent creating bodies based on bodies (but don't pop-up a dialog)
baseFeature = nullptr;
}
else {