mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6937 StimPlanModel: fix missing update in plot when toggling elastic scaling property
This commit is contained in:
@@ -111,3 +111,15 @@ double RimElasticPropertyScalingCollection::getScaling( const QString&
|
||||
// No scaling found. Default is not scaling (1.0).
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimElasticPropertyScalingCollection::initAfterRead()
|
||||
{
|
||||
std::vector<RimElasticPropertyScaling*> templates;
|
||||
for ( auto& scaling : m_elasticPropertyScalings )
|
||||
{
|
||||
scaling->changed.connect( this, &RimElasticPropertyScalingCollection::elasticPropertyScalingChanged );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ public:
|
||||
|
||||
double getScaling( const QString& formationName, const QString& faciesName, RiaDefines::CurveProperty property ) const;
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
|
||||
private:
|
||||
void elasticPropertyScalingChanged( const caf::SignalEmitter* emitter );
|
||||
caf::PdmChildArrayField<RimElasticPropertyScaling*> m_elasticPropertyScalings;
|
||||
|
||||
Reference in New Issue
Block a user