#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:
Jacob Støren 2018-05-11 16:39:57 +02:00
parent 7e54eb055c
commit 52047819d6

View File

@ -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;
}
}
}