#1425 For backwards compatibility, revert calculation so that never reaches 1.0
This commit is contained in:
parent
2b5c3ef70d
commit
6c8bff81d3
1 changed files with 2 additions and 2 deletions
|
|
@ -849,7 +849,7 @@ void MainWindow::updatedAnimFps()
|
|||
double fps = this->e_fps->text().toDouble(&fps_ok);
|
||||
animate_timer->stop();
|
||||
if (fps_ok && fps > 0) {
|
||||
this->anim_step = this->anim_tval * (this->anim_numsteps - 1);
|
||||
this->anim_step = int(this->anim_tval * this->anim_numsteps) % this->anim_numsteps;
|
||||
animate_timer->setSingleShot(false);
|
||||
animate_timer->setInterval(int(1000 / fps));
|
||||
animate_timer->start();
|
||||
|
|
@ -881,7 +881,7 @@ void MainWindow::updateTVal()
|
|||
|
||||
if (this->anim_numsteps > 1) {
|
||||
this->anim_step = (this->anim_step + 1) % this->anim_numsteps;
|
||||
this->anim_tval = 1.0 * this->anim_step / (this->anim_numsteps - 1);
|
||||
this->anim_tval = 1.0 * this->anim_step / this->anim_numsteps;
|
||||
}
|
||||
else if (this->anim_numsteps > 0) {
|
||||
this->anim_step = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue