[PD, Part] bring section cutting feature back to the View menu
As discussed here: https://github.com/FreeCAD/FreeCAD/pull/6213#issuecomment-1033696604 the feature makes not much sense when only available from within the Part menu. For now, bring it at least back to the View menu for Part and PD
This commit is contained in:
@@ -137,7 +137,6 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
<< "Part_Loft"
|
||||
<< "Part_Sweep"
|
||||
<< "Part_Section"
|
||||
<< "Part_SectionCut"
|
||||
<< "Part_CrossSections"
|
||||
<< "Part_Offset"
|
||||
<< "Part_Offset2D"
|
||||
@@ -165,6 +164,11 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
Gui::MenuItem* face = new Gui::MenuItem();
|
||||
face->setCommand("Part_ColorPerFace");
|
||||
view->insertItem(appr, face);
|
||||
appr = view->findItem("Std_ToggleClipPlane");
|
||||
appr = view->afterItem(appr);
|
||||
Gui::MenuItem* cut = new Gui::MenuItem();
|
||||
cut->setCommand("Part_SectionCut");
|
||||
view->insertItem(appr, cut);
|
||||
}
|
||||
|
||||
return root;
|
||||
|
||||
@@ -588,6 +588,11 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
Gui::MenuItem* face = new Gui::MenuItem();
|
||||
face->setCommand("Part_ColorPerFace");
|
||||
view->insertItem(appr, face);
|
||||
appr = view->findItem("Std_ToggleClipPlane");
|
||||
appr = view->afterItem(appr);
|
||||
Gui::MenuItem* cut = new Gui::MenuItem();
|
||||
cut->setCommand("Part_SectionCut");
|
||||
view->insertItem(appr, cut);
|
||||
}
|
||||
|
||||
// For 0.13 a couple of python packages like numpy, matplotlib and others
|
||||
|
||||
Reference in New Issue
Block a user