Merge branch 'feature/session-recording-improvements' of https://github.com/OpenSpace/OpenSpace into feature/session-recording-improvements

This commit is contained in:
GPayne
2019-10-11 11:47:22 -06:00

View File

@@ -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;
}