#14962: Update MSW segments when segment intervals change

Segment interval edits, creation and deletion did not trigger the automatic MSW segment update, so the segment visualization along the well path was stale.
This commit is contained in:
Magne Sjaastad authored and Kristian Bendiksen committed 2026-10-19 20:00:04 +02:00
1 parent d8dc1c051f
commit 81bcc2657d
4 files changed
+27

No files matched your search

@@ -26,6 +26,7 @@
#include "RimMswCompletionParameters.h"
#include "RimSegmentInterval.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
#include "cafCmdFeatureMenuBuilder.h"
#include "cafPdmFieldScriptingCapability.h"
@@ -533,6 +534,27 @@ void RimSegmentCollection::fieldChangedByUi( const caf::PdmFieldHandle* changedF
m_maxSegmentLength.uiCapability()->setUiHidden( !m_enforceMaxSegmentLength() );
caf::PdmUiObjectEditorHandle::updateUiAllObjectEditors();
}
updateMswSegments();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimSegmentCollection::childFieldChangedByUi( const caf::PdmFieldHandle* changedChildField )
{
updateMswSegments();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimSegmentCollection::updateMswSegments()
{
if ( auto* wellPathCollection = RimWellPathCollection::instance() )
{
wellPathCollection->updateMswSegmentsForObject( this );
}
}
//--------------------------------------------------------------------------------------------------