mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
#4857 Fix intersection polyline picking in comparison view
This commit is contained in:
1 parent
99fb39bd68
commit
dbd09e97e3
2 files changed
+5
-4
No files matched your search
@@ -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() )
|
||||||
|
|||||||
Reference in new issue
Block a user