From 454e2e15592005de0bd03a25f14385e6c48c0e30 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 7 Jun 2017 15:31:10 +0200 Subject: [PATCH] #1570 Ensure the legend is updated before adding well path parts to scene --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index 554b3d8ec9..a998a637df 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -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(),