Skip to content

Commit 64b91cc

Browse files
committed
[3d] if slider is at the very end when hitting play, rewind and play
1 parent 73edd8f commit 64b91cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/3d/qgs3danimationwidget.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ void Qgs3DAnimationWidget::onPlayPause()
138138
}
139139
else
140140
{
141+
if ( sliderTime->value() >= sliderTime->maximum() )
142+
{
143+
sliderTime->setValue( 0 );
144+
}
145+
141146
cboKeyframe->setCurrentIndex( 0 ); // unset active keyframe
142147
cboKeyframe->setEnabled( false );
143148
mAnimationTimer->start();

0 commit comments

Comments
 (0)