mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-02 18:39:20 -06:00
Add action to play timelapse in reverse
This commit is contained in:
@@ -213,6 +213,10 @@ double ScriptScheduler::currentTime() const {
|
||||
return _currentTime;
|
||||
}
|
||||
|
||||
void ScriptScheduler::setCurrentTime(double time) {
|
||||
_currentTime = time;
|
||||
}
|
||||
|
||||
std::vector<ScriptScheduler::ScheduledScript> ScriptScheduler::allScripts() const {
|
||||
std::vector<ScheduledScript> result;
|
||||
for (size_t i = 0; i < _timings.size(); ++i) {
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <openspace/interaction/keybindingmanager.h>
|
||||
#include <openspace/interaction/sessionrecording.h>
|
||||
#include <openspace/network/parallelpeer.h>
|
||||
#include <openspace/scripting/scriptscheduler.h>
|
||||
#include <openspace/util/keys.h>
|
||||
#include <openspace/util/timeline.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
@@ -405,6 +406,7 @@ void TimeManager::setTimeNextFrame(Time t) {
|
||||
_shouldSetTime = true;
|
||||
_timeNextFrame = std::move(t);
|
||||
clearKeyframes();
|
||||
global::scriptScheduler->setCurrentTime(t.j2000Seconds());
|
||||
}
|
||||
|
||||
void TimeManager::setDeltaTime(double deltaTime) {
|
||||
|
||||
Reference in New Issue
Block a user