mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-10 05:32:18 -06:00
Merge branch 'feature/session-recording-improvements' of https://github.com/OpenSpace/OpenSpace into feature/session-recording-improvements
This commit is contained in:
@@ -160,14 +160,15 @@ bool SessionRecording::startRecording(const std::string& filename) {
|
||||
}
|
||||
_recordFile << '\n';
|
||||
|
||||
_timestampRecordStarted = global::windowDelegate.applicationTime();
|
||||
|
||||
//Record the current delta time so this is preserved in recording
|
||||
double currentDeltaTime = global::timeManager.deltaTime();
|
||||
std::string scriptCommandForInitializingDeltaTime =
|
||||
"openspace.time.setDeltaTime(" + std::to_string(currentDeltaTime) + ");";
|
||||
"openspace.time.setDeltaTime(" + std::to_string(currentDeltaTime) + ")";
|
||||
saveScriptKeyframe(scriptCommandForInitializingDeltaTime);
|
||||
|
||||
LINFO("Session recording started");
|
||||
_timestampRecordStarted = global::windowDelegate.applicationTime();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user