[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:
Uwe
2022-02-14 01:34:55 +01:00
parent 9b1245ab5f
commit 68a5c7e438
2 changed files with 10 additions and 1 deletions

View File

@@ -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;

View File

@@ -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