Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[3d] if slider is at the very end when hitting play, rewind and play
  • Loading branch information
nirvn committed Jul 10, 2018
1 parent 73edd8f commit 64b91cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/3d/qgs3danimationwidget.cpp
Expand Up @@ -138,6 +138,11 @@ void Qgs3DAnimationWidget::onPlayPause()
}
else
{
if ( sliderTime->value() >= sliderTime->maximum() )
{
sliderTime->setValue( 0 );
}

cboKeyframe->setCurrentIndex( 0 ); // unset active keyframe
cboKeyframe->setEnabled( false );
mAnimationTimer->start();
Expand Down

0 comments on commit 64b91cc

Please sign in to comment.