mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix player loop
This commit is contained in:
parent
829774dae4
commit
20c862d199
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ void Player::loadRecording(RecordingPointer recording) {
|
||||||
|
|
||||||
void Player::play() {
|
void Player::play() {
|
||||||
computeCurrentFrame();
|
computeCurrentFrame();
|
||||||
if (_currentFrame < 0 || (_currentFrame >= _recording->getFrameNumber() - 1)) {
|
if (_currentFrame < 0 || (_currentFrame >= _recording->getFrameNumber() - 2)) { // -2 because of interpolation
|
||||||
if (_loop) {
|
if (_loop) {
|
||||||
loopRecording();
|
loopRecording();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue