From f14640286472ad296914db064a3d7aa4a1507189 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 9 Nov 2020 23:17:38 +0100 Subject: [PATCH] #6936 StimPlanModel: missing update when changing eclipse case or time step in plot. --- .../ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp | 1 + .../StimPlanModel/RimStimPlanModelPlot.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp b/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp index 67696f0201..c37d00ab34 100644 --- a/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp +++ b/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModel.cpp @@ -1444,6 +1444,7 @@ void RimStimPlanModel::setEclipseCaseAndTimeStep( RimEclipseCase* eclipseCase, i updateThicknessDirection(); updateBarrierProperties(); updateViewsAndPlots(); + updateConnectedEditors(); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModelPlot.cpp b/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModelPlot.cpp index acd70ebc31..6ac6dc0492 100644 --- a/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModelPlot.cpp +++ b/ApplicationCode/ProjectDataModel/StimPlanModel/RimStimPlanModelPlot.cpp @@ -155,9 +155,14 @@ void RimStimPlanModelPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedF //-------------------------------------------------------------------------------------------------- void RimStimPlanModelPlot::onLoadDataAndUpdate() { - // Enable and disable detailed fluid loss curves if ( stimPlanModel() != nullptr ) { + // Update eclipse case and time step + m_eclipseCase = stimPlanModel()->eclipseCase(); + m_timeStep = stimPlanModel()->timeStep(); + updateConnectedEditors(); + + // Enable and disable detailed fluid loss curves std::vector fluidLossCurves = { RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT, RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR, RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT,