mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 17:09:05 -05:00
No longer silently pause the simulation time when starting a camera path
And if user unpauses during motion, pause again.
This commit is contained in:
@@ -214,6 +214,12 @@ void AutoNavigationHandler::updateCamera(double deltaTime) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If for some reason the time is no longer paused, pause it again
|
||||
if (!global::timeManager->isPaused()) {
|
||||
global::timeManager->setPause(true);
|
||||
LINFO("Cannot start simulation time during camera motion");
|
||||
}
|
||||
|
||||
std::unique_ptr<PathSegment> ¤tSegment = _pathSegments[_currentSegmentIndex];
|
||||
|
||||
CameraPose newPose = currentSegment->traversePath(deltaTime);
|
||||
@@ -307,9 +313,6 @@ void AutoNavigationHandler::startPath() {
|
||||
"Must have exactly one stop entry between every segment."
|
||||
);
|
||||
|
||||
// TODO: remove this line at the end of our project. Used to simplify testing
|
||||
global::timeManager->setPause(true);
|
||||
|
||||
//OBS! Until we can handle simulation time: early out if not paused
|
||||
if (!global::timeManager->isPaused()) {
|
||||
LERROR("Simulation time must be paused to run a camera path.");
|
||||
|
||||
Reference in New Issue
Block a user