Fixed missing selection of well path in project tree when clicking on a well path in 3D view

This commit is contained in:
Magne Sjaastad
2015-12-16 09:45:56 +01:00
parent fc7721dc20
commit 0a15ccf577
3 changed files with 2 additions and 22 deletions

View File

@@ -456,8 +456,6 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
return;
}
}
updateSelectionFromPickedPart(firstHitPart);
}
if (firstHitPart && firstHitPart->sourceInfo())
@@ -706,25 +704,6 @@ void RiuViewerCommands::ijkFromCellIndex(size_t gridIdx, size_t cellIndex, size
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuViewerCommands::updateSelectionFromPickedPart(cvf::Part* part)
{
if (part && part->sourceInfo())
{
const RivWellPathSourceInfo* wellPathSourceInfo = dynamic_cast<const RivWellPathSourceInfo*>(part->sourceInfo());
if (wellPathSourceInfo)
{
RimWellPath* wellPath = wellPathSourceInfo->wellPath();
if (wellPath)
{
RiuMainWindow::instance()->selectAsCurrentItem(wellPath);
}
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------