fix inconsistencies when loading a file if another is already loaded
This commit is contained in:
@ -126,7 +126,6 @@ DroneController::DroneController(const QJsonObject &json)
|
||||
}
|
||||
|
||||
connect(&timer, &QTimer::timeout, this, &DroneController::step);
|
||||
pause();
|
||||
}
|
||||
|
||||
|
||||
@ -136,7 +135,6 @@ int DroneController::getDuration() const {
|
||||
|
||||
|
||||
void DroneController::step() {
|
||||
// qDebug("frame %d (%d%%)", frame, (int) ((double) frame / duration * 100));
|
||||
for (Drone d : drones) {
|
||||
d.setTo(frame);
|
||||
}
|
||||
@ -154,7 +152,6 @@ void DroneController::play() {
|
||||
if (!paused) return;
|
||||
paused = false;
|
||||
timer.start(1000. / framerate);
|
||||
qDebug() << "playing";
|
||||
emit playing();
|
||||
}
|
||||
|
||||
@ -163,7 +160,6 @@ void DroneController::pause() {
|
||||
if (paused) return;
|
||||
paused = true;
|
||||
timer.stop();
|
||||
qDebug() << "pausing";
|
||||
emit pausing();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user