Part Design: Remove legacy/modern workflow checks.

This commit is contained in:
PaddleStroke
2024-10-23 11:01:12 +02:00
committed by Chris Hennes
parent 56ae35b0f2
commit b1d5d4c105
7 changed files with 21 additions and 86 deletions

View File

@@ -83,13 +83,6 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
App::DocumentObject *feature = selection.front().pObject;
PartDesign::Body *body = nullptr;
// if PD workflow is not new-style then add a command to the context-menu
bool assertModern = true;
if (feature && !isModernWorkflow(feature->getDocument())) {
assertModern = false;
*item << "PartDesign_Migrate";
}
body = PartDesignGui::getBodyFor (feature, false, false, assertModern);
// lote of assertion so feature should be marked as a tip
if ( selection.size () == 1 && feature && (