#1570 Ensure the legend is updated before adding well path parts to scene

This commit is contained in:
Magne Sjaastad 2017-06-07 15:31:10 +02:00
parent 10b7aa4e32
commit 454e2e1559

View File

@ -446,6 +446,10 @@ void RimEclipseView::createDisplayModel()
RigMainGrid* mainGrid = this->mainGrid();
if (mainGrid)
{
// NB! StimPlan legend colors must be updated before well path geometry is added to the model
// as the fracture geometry depends on the StimPlan legend colors
stimPlanColors->updateLegendData();
addWellPathsToModel(m_wellPathPipeVizModel.p(),
mainGrid->displayModelOffset(),
mainGrid->characteristicIJCellSize(),