[PartDesign] Remove 'Set tip' from Body contextual menu ; fixes #4304

This commit is contained in:
0penBrain
2020-04-07 16:59:24 +02:00
committed by abdullahtahiriyo
parent 2ed5786d07
commit f9fc96047d

View File

@@ -175,7 +175,6 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
body = PartDesignGui::getBodyFor (feature, false, false, assertModern);
// lote of assertion so feature should be marked as a tip
if ( selection.size () == 1 && feature && (
feature->isDerivedFrom ( PartDesign::Body::getClassTypeId () ) ||
( feature->isDerivedFrom ( PartDesign::Feature::getClassTypeId () ) && body ) ||
( feature->isDerivedFrom ( Part::Feature::getClassTypeId () ) && body &&
body->BaseFeature.getValue() == feature )