From: nds Date: Mon, 5 Oct 2015 07:01:00 +0000 (+0300) Subject: Issue #590 Setting random colors to bodies. "Color" popup menu action available in... X-Git-Tag: V_1.4.0_demo2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed438696473dac61ba94d1b1ef88f8cca5cfb464;p=modules%2Fshaper.git Issue #590 Setting random colors to bodies. "Color" popup menu action available in viewer 3d. --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 494d80002..c65481a08 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -439,8 +439,10 @@ void XGUI_ContextMenuMgr::addViewerMenu(QMenu* theMenu) const std::string aName = aObject->groupName(); if (myViewerMenu.contains(aName)) aActions = myViewerMenu[aName]; + aActions.append(action("COLOR_CMD")); } else if (aSelected > 1) { aActions.append(action("HIDE_CMD")); + aActions.append(action("COLOR_CMD")); } theMenu->addActions(aActions);