[PartDesign] Remove 'Set tip' from Body contextual menu ; fixes #4304
This commit is contained in:
committed by
abdullahtahiriyo
parent
2ed5786d07
commit
f9fc96047d
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user