#4857 Fix intersection polyline picking in comparison view

This commit is contained in:
Jacob Støren 2019-10-30 10:02:36 +01:00
parent 99fb39bd68
commit dbd09e97e3
2 changed files with 5 additions and 4 deletions

View File

@ -108,7 +108,7 @@ void RicNewPolylineIntersectionFeatureCmd::redo()
intersection->type = RimIntersection::CS_POLYLINE;
intersection->inputPolyLineFromViewerEnabled = true;
m_intersectionCollection->appendIntersectionAndUpdate( intersection );
m_intersectionCollection->appendIntersectionAndUpdate( intersection, false );
Riu3dSelectionManager::instance()->deleteAllItems();

View File

@ -52,12 +52,13 @@ bool RicIntersectionPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& e
RimGridView* gridView = nullptr;
intersection->firstAncestorOrThisOfTypeAsserted( gridView );
if ( RiaApplication::instance()->activeGridView() != gridView )
if ( RiaApplication::instance()->activeMainOrComparisonGridView() != gridView )
{
return false;
}
cvf::ref<caf::DisplayCoordTransform> transForm = gridView->displayCoordTransform();
cvf::Vec3d domainCoord = transForm->transformToDomainCoord(
eventObject.m_pickItemInfos.front().globalPickedPoint() );