#2298 Fracture. Update fracture colors when changing stim plan legend settings

This commit is contained in:
Bjørn Erik Jensen
2018-01-02 11:21:37 +01:00
parent 79818cecac
commit 70a3df3b3c
3 changed files with 32 additions and 16 deletions

View File

@@ -204,6 +204,15 @@ void RimLegendConfig::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
view->updateCurrentTimeStepAndRedraw();
}
// Update stim plan templates if relevant
RimStimPlanColors* stimPlanColors;
firstAncestorOrThisOfType(stimPlanColors);
if (stimPlanColors)
{
stimPlanColors->updateStimPlanTemplates();
}
}
//--------------------------------------------------------------------------------------------------