From 9b1245ab5fa8725963caaf4d942442390b6f820e Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 14 Feb 2022 01:01:40 +0100 Subject: [PATCH] [PD] use Part's face coloring like for the measurement features of Part, the color per faces can be used for PD too --- src/Mod/PartDesign/Gui/Workbench.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mod/PartDesign/Gui/Workbench.cpp b/src/Mod/PartDesign/Gui/Workbench.cpp index 76f8cc1eda..04927fbc6b 100644 --- a/src/Mod/PartDesign/Gui/Workbench.cpp +++ b/src/Mod/PartDesign/Gui/Workbench.cpp @@ -581,6 +581,15 @@ Gui::MenuItem* Workbench::setupMenuBar() const << "Part_Measure_Toggle_3D" << "Part_Measure_Toggle_Delta"; + Gui::MenuItem* view = root->findItem("&View"); + if (view) { + Gui::MenuItem* appr = view->findItem("Std_RandomColor"); + appr = view->afterItem(appr); + Gui::MenuItem* face = new Gui::MenuItem(); + face->setCommand("Part_ColorPerFace"); + view->insertItem(appr, face); + } + // For 0.13 a couple of python packages like numpy, matplotlib and others // are not deployed with the installer on Windows. Thus, the WizardShaft is // not deployed either hence the check for the existence of the command.