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->type = RimIntersection::CS_POLYLINE;
|
||||||
intersection->inputPolyLineFromViewerEnabled = true;
|
intersection->inputPolyLineFromViewerEnabled = true;
|
||||||
|
|
||||||
m_intersectionCollection->appendIntersectionAndUpdate( intersection );
|
m_intersectionCollection->appendIntersectionAndUpdate( intersection, false );
|
||||||
|
|
||||||
Riu3dSelectionManager::instance()->deleteAllItems();
|
Riu3dSelectionManager::instance()->deleteAllItems();
|
||||||
|
|
||||||
|
@ -52,13 +52,14 @@ bool RicIntersectionPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& e
|
|||||||
RimGridView* gridView = nullptr;
|
RimGridView* gridView = nullptr;
|
||||||
intersection->firstAncestorOrThisOfTypeAsserted( gridView );
|
intersection->firstAncestorOrThisOfTypeAsserted( gridView );
|
||||||
|
|
||||||
if ( RiaApplication::instance()->activeGridView() != gridView )
|
if ( RiaApplication::instance()->activeMainOrComparisonGridView() != gridView )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cvf::ref<caf::DisplayCoordTransform> transForm = gridView->displayCoordTransform();
|
cvf::ref<caf::DisplayCoordTransform> transForm = gridView->displayCoordTransform();
|
||||||
cvf::Vec3d domainCoord = transForm->transformToDomainCoord(
|
|
||||||
|
cvf::Vec3d domainCoord = transForm->transformToDomainCoord(
|
||||||
eventObject.m_pickItemInfos.front().globalPickedPoint() );
|
eventObject.m_pickItemInfos.front().globalPickedPoint() );
|
||||||
|
|
||||||
if ( intersection->inputPolyLineFromViewerEnabled() )
|
if ( intersection->inputPolyLineFromViewerEnabled() )
|
||||||
|
Loading…
Reference in New Issue
Block a user