This commit is contained in:
rubenthoms
2020-09-18 14:43:15 +02:00
committed by Magne Sjaastad
parent 7aa0f33811
commit 409db46ab3
3 changed files with 17 additions and 1 deletions

View File

@@ -432,3 +432,17 @@ RimSurfaceCollection* RimSurfaceCollection::getSubCollection( const QString name
return nullptr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimSurfaceCollection::containsSurface()
{
bool containsSurface = ( surfaces().size() > 0 );
for ( auto coll : m_subCollections )
{
containsSurface |= coll->containsSurface();
}
return containsSurface;
}