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

@@ -120,7 +120,7 @@ PartDesign::Body *getBody(bool messageIfNot, bool autoActivate, bool assertModer
if (activeView) {
auto doc = activeView->getAppDocument();
bool singleBodyDocument = doc->countObjectsOfType(PartDesign::Body::getClassTypeId()) == 1;
if (assertModern && PartDesignGui::assureModernWorkflow (doc) ) {
if (assertModern) {
activeBody = activeView->getActiveObject<PartDesign::Body*>(PDBODYKEY,topParent,subname);
if (!activeBody && singleBodyDocument && autoActivate) {