#3864 Update and clamp valve positions to perforation interval when perforation interval changes.

This commit is contained in:
Gaute Lindkvist
2018-12-14 08:44:36 +01:00
parent 543b8fc1cc
commit 47bb14eb06
6 changed files with 82 additions and 35 deletions

View File

@@ -314,6 +314,15 @@ void RimPerforationInterval::fieldChangedByUi(const caf::PdmFieldHandle* changed
const QVariant& oldValue,
const QVariant& newValue)
{
if (changedField == &m_startMD ||
changedField == &m_endMD)
{
for (RimWellPathValve* valve : m_valves())
{
valve->perforationIntervalUpdated();
}
}
this->updateAllReferringTracks();
RimProject* proj = nullptr;