mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2891 Convert 2018.01.01 drawstyle from fault to full if it was in none-grid mode
Makes the setup more consistent with what they had, and what the user will get when turning the grid back on.
This commit is contained in:
@@ -286,6 +286,14 @@ void RimGridView::initAfterRead()
|
|||||||
bool isGridVisualizationModeBefore_2018_1_1 = ((surfaceMode() == RimGridView::SURFACE) || (meshMode() == RimGridView::FULL_MESH));
|
bool isGridVisualizationModeBefore_2018_1_1 = ((surfaceMode() == RimGridView::SURFACE) || (meshMode() == RimGridView::FULL_MESH));
|
||||||
|
|
||||||
m_gridCollection->isActive = isGridVisualizationModeBefore_2018_1_1;
|
m_gridCollection->isActive = isGridVisualizationModeBefore_2018_1_1;
|
||||||
|
if (!isGridVisualizationModeBefore_2018_1_1)
|
||||||
|
{
|
||||||
|
// Was showing faults and intersections.
|
||||||
|
// If was showing with mesh and/or surfaces, turn to full mesh/surf mode to show the mesh,
|
||||||
|
// and to avoid a strange setup when dropping out into grid mode again
|
||||||
|
if (surfaceMode() != RimGridView::NO_SURFACE) surfaceMode = RimGridView::SURFACE;
|
||||||
|
if (meshMode() != RimGridView::NO_MESH) meshMode = RimGridView::FULL_MESH;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user