From ed438696473dac61ba94d1b1ef88f8cca5cfb464 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 5 Oct 2015 10:01:00 +0300 Subject: [PATCH] Issue #590 Setting random colors to bodies. "Color" popup menu action available in viewer 3d. --- src/XGUI/XGUI_ContextMenuMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2