System : Prepare for temporary selection

This commit is contained in:
Magne Sjaastad 2016-12-21 08:22:45 +01:00
parent ebb191069f
commit 2e3ba3a644
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class RimGeoMechView;
//==================================================================================================
class RiuSelectionManager
{
public:
enum SelectionRole
{
RUI_APPLICATION_GLOBAL, // Selection role intended to manage the cells selected by left mouse click in the 3D view

View File

@ -329,6 +329,9 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
{
menu.exec(event->globalPos());
}
// Delete items in temporary selection
RiuSelectionManager::instance()->deleteAllItems(RiuSelectionManager::RUI_TEMPORARY);
}
//--------------------------------------------------------------------------------------------------