Feature tree: Insert mode for SketchBased features
This commit is contained in:
committed by
Stefan Tröger
parent
e9d8c03665
commit
9fc73e6abe
@@ -36,6 +36,7 @@
|
||||
#include <Gui/Control.h>
|
||||
|
||||
#include <Mod/PartDesign/App/Body.h>
|
||||
#include <Mod/PartDesign/App/Feature.h>
|
||||
|
||||
using namespace PartDesignGui;
|
||||
|
||||
@@ -60,6 +61,15 @@ Workbench::~Workbench()
|
||||
{
|
||||
}
|
||||
|
||||
void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) const
|
||||
{
|
||||
if (strcmp(recipient,"Tree") == 0)
|
||||
{
|
||||
if (Gui::Selection().countObjectsOfType(PartDesign::Feature::getClassTypeId()) > 0 )
|
||||
*item << "PartDesign_MoveTip";
|
||||
}
|
||||
}
|
||||
|
||||
void Workbench::activated()
|
||||
{
|
||||
Gui::Workbench::activated();
|
||||
|
||||
Reference in New Issue
Block a user