Fix intersection crash by making sure we do nothing when top limit is below bottom limit

This commit is contained in:
Jon Jenssen
2022-06-01 17:59:54 +02:00
committed by Magne Sjaastad
parent fd7821a10b
commit 89773da26e
3 changed files with 19 additions and 2 deletions

View File

@@ -236,6 +236,10 @@ void RivExtrudedCurveIntersectionPartMgr::generatePartGeometry()
{
if ( m_intersectionGenerator.isNull() ) return;
if ( m_rimIntersection->depthFilterType() == RimIntersectionFilterEnum::INTERSECT_FILTER_BETWEEN &&
( m_rimIntersection->lowerFilterDepth( 1.0 ) <= m_rimIntersection->upperFilterDepth( 1.0 ) ) )
return;
bool useBufferObjects = true;
// Surface geometry
{