#4857 Avoid switching active view when creating intersectinos

This commit is contained in:
Jacob Støren
2019-10-30 14:32:29 +01:00
parent 11f42fcc7b
commit ce28f1e858
4 changed files with 4 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ void RicCopyIntersectionsToAllViewsInCaseFeature::copyIntersectionsToOtherViews(
intersection->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) ); intersection->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
CVF_ASSERT( copy ); CVF_ASSERT( copy );
destCollection->appendIntersectionAndUpdate( copy ); destCollection->appendIntersectionAndUpdate( copy, false );
// Resolve references after object has been inserted into the project data model // Resolve references after object has been inserted into the project data model
copy->resolveReferencesRecursively(); copy->resolveReferencesRecursively();

View File

@@ -119,7 +119,7 @@ void RicNewAzimuthDipIntersectionFeatureCmd::redo()
intersection->setLengthDown( cvf::Math::floor( bBox.extent()[2] / 2 ) ); intersection->setLengthDown( cvf::Math::floor( bBox.extent()[2] / 2 ) );
} }
m_intersectionCollection->appendIntersectionAndUpdate( intersection ); m_intersectionCollection->appendIntersectionAndUpdate( intersection, false );
Riu3dSelectionManager::instance()->deleteAllItems(); Riu3dSelectionManager::instance()->deleteAllItems();
Riu3DMainWindowTools::selectAsCurrentItem( intersection, false ); Riu3DMainWindowTools::selectAsCurrentItem( intersection, false );

View File

@@ -106,7 +106,7 @@ void RicNewSimWellIntersectionCmd::redo()
intersection->type = RimIntersection::CS_SIMULATION_WELL; intersection->type = RimIntersection::CS_SIMULATION_WELL;
intersection->simulationWell = m_simWell; intersection->simulationWell = m_simWell;
m_intersectionCollection->appendIntersectionAndUpdate( intersection ); m_intersectionCollection->appendIntersectionAndUpdate( intersection, false );
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -94,7 +94,7 @@ void RicPasteIntersectionsFeature::onActionTriggered( bool isChecked )
if ( i == intersectionObjects.size() - 1 ) if ( i == intersectionObjects.size() - 1 )
{ {
intersectionCollection->appendIntersectionAndUpdate( intersection ); intersectionCollection->appendIntersectionAndUpdate( intersection, false );
} }
else else
{ {