Fix bbox invalid assert in RiuViewer in debug build

This commit is contained in:
Jacob Støren
2019-11-07 12:33:38 +01:00
parent a9dc07ddc9
commit 8eb94eaabe

View File

@@ -188,7 +188,8 @@ void RivGridBoxGenerator::setGridBoxDomainCoordBoundingBox( const cvf::BoundingB
expandedBB.add( min );
expandedBB.add( max );
if ( m_domainCoordsBoundingBox.min() != expandedBB.min() || m_domainCoordsBoundingBox.max() != expandedBB.max() )
if ( !m_domainCoordsBoundingBox.isValid() || m_domainCoordsBoundingBox.min() != expandedBB.min() ||
m_domainCoordsBoundingBox.max() != expandedBB.max() )
{
m_needsRegeneration = true;
}