Merge pull request #3655 from Atlante45/fix_playback_loop

Fix player loop
This commit is contained in:
AndrewMeadows 2014-10-24 08:47:57 -07:00
commit 64892a6b27

View file

@ -212,7 +212,7 @@ void Player::loadRecording(RecordingPointer recording) {
void Player::play() {
computeCurrentFrame();
if (_currentFrame < 0 || (_currentFrame >= _recording->getFrameNumber() - 1)) {
if (_currentFrame < 0 || (_currentFrame >= _recording->getFrameNumber() - 2)) { // -2 because of interpolation
if (_loop) {
loopRecording();
} else {