do not auto activate single body in document when opening context-menu

This commit is contained in:
wmayer
2017-09-21 15:59:32 +02:00
parent 41b42cce04
commit 957bab1e29
3 changed files with 16 additions and 8 deletions

View File

@@ -163,7 +163,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
// Add move Tip Command
if ( selection.size () >= 1 ) {
App::DocumentObject *feature = selection.front().pObject;
PartDesign::Body *body = PartDesignGui::getBodyFor ( feature, false );
PartDesign::Body *body = PartDesignGui::getBodyFor (feature, false, false);
// lote of assertion so feature should be marked as a tip
if ( selection.size () == 1 && feature && (
feature->isDerivedFrom ( PartDesign::Body::getClassTypeId () ) ||