From 7cdc550f3262fe99bbd7bff266998f6a1b9bb381 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 9 Feb 2017 06:59:34 +0100 Subject: [PATCH] Fixed #1130 Make sure visibility of fractures follows pipe/sphere visibility --- ApplicationCode/ProjectDataModel/RimEclipseView.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index 9c30cc1a59..0f4f3044ab 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -641,6 +641,17 @@ void RimEclipseView::updateCurrentTimeStep() this->descendantsIncludingThisOfType(fractures); for (RimFracture* f : fractures) { + RimEclipseWell* eclWell = nullptr; + f->firstAncestorOrThisOfType(eclWell); + if (eclWell) + { + bool isAnyGeometryPresent = eclWell->isWellPipeVisible(m_currentTimeStep) || eclWell->isWellSpheresVisible(m_currentTimeStep); + if (!isAnyGeometryPresent) + { + continue; + } + } + f->fracturePartManager()->appendGeometryPartsToModel(wellPipeModelBasicList.p(), transForm.p()); }