Skip to content

Commit

Permalink
Fix broken filters in contour maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Jan 8, 2025
1 parent dde369f commit 8b5448b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,16 @@ void RimContourMapProjection::generateResultsIfNecessary( int timeStep )

if ( !m_contourMapGrid || !m_contourMapProjection ) updateGridInformation();

auto cellVisibility = getCellVisibility();
m_contourMapProjection->setCellVisibility( cellVisibility );

progress.setProgress( 10 );

if ( gridMappingNeedsUpdating() || mapCellVisibilityNeedsUpdating( timeStep ) || resultVariableChanged() )
{
clearResults();
clearTimeStepRange();

auto cellVisibility = getCellVisibility();
m_contourMapProjection->setCellVisibility( cellVisibility );

if ( gridMappingNeedsUpdating() )
{
m_contourMapProjection->setCellVisibility( getCellVisibility() );
m_contourMapProjection->generateGridMapping( m_resultAggregation(), retrieveParameterWeights() );
}
progress.setProgress( 20 );
Expand Down

0 comments on commit 8b5448b

Please sign in to comment.