mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4857 Fix intersection polyline picking in comparison view
This commit is contained in:
parent
99fb39bd68
commit
dbd09e97e3
@ -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();
|
||||
|
||||
|
@ -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() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user