Skip to content

Commit

Permalink
fix time step for first loaded layer
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Nov 12, 2020
1 parent 5375508 commit 838792e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -424,7 +424,12 @@ void QgsTemporalControllerWidget::firstTemporalLayerLoaded( QgsMapLayer *layer )

QgsMeshLayer *meshLayer = qobject_cast<QgsMeshLayer *>( layer );
if ( meshLayer )
{
mBlockFrameDurationUpdates++;
setTimeStep( meshLayer->firstValidTimeStep() );
mBlockFrameDurationUpdates--;
updateFrameDuration();
}
}

void QgsTemporalControllerWidget::onProjectCleared()
Expand Down

0 comments on commit 838792e

Please sign in to comment.