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:
parent
7e54eb055c
commit
52047819d6
@ -286,6 +286,14 @@ void RimGridView::initAfterRead()
|
||||
bool isGridVisualizationModeBefore_2018_1_1 = ((surfaceMode() == RimGridView::SURFACE) || (meshMode() == RimGridView::FULL_MESH));
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user