Skip to content

Commit

Permalink
Do not show file polygon in view if no polygons are imported
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 29, 2024
1 parent ad8e2cb commit b535184
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ void RimPolygonInViewCollection::syncCollectionsWithView()

for ( auto polygonFile : polygonCollection->polygonFiles() )
{
if ( polygonFile->polygons().empty() ) continue;

auto viewPolygonFile = getCollectionInViewForPolygonFile( polygonFile );
if ( viewPolygonFile == nullptr )
{
Expand Down

0 comments on commit b535184

Please sign in to comment.