mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#3558 Grid items in Project Tree : Use main grid to control fault visibility
This commit is contained in:
1 parent
e3d985d220
commit
6d55b5d242
1 file changed
+5
@@ -273,6 +273,11 @@ RimViewLinker* RimGridView::assosiatedViewLinker() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RimGridView::isGridVisualizationMode() const
|
bool RimGridView::isGridVisualizationMode() const
|
||||||
{
|
{
|
||||||
|
auto indicesToVisibleGrids = m_gridCollection->indicesToVisibleGrids();
|
||||||
|
bool isMainGridVisible = std::find(indicesToVisibleGrids.begin(), indicesToVisibleGrids.end(), 0) != indicesToVisibleGrids.end();
|
||||||
|
|
||||||
|
if (!isMainGridVisible) return false;
|
||||||
|
|
||||||
return this->m_gridCollection->isActive();
|
return this->m_gridCollection->isActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user