mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-19 16:51:33 -05:00
Update current time before we start stepping along the curve. Did not reach end before
This commit is contained in:
@@ -102,6 +102,8 @@ void AutoNavigationHandler::updateCamera(double deltaTime) {
|
||||
}
|
||||
}
|
||||
|
||||
_currentTime += deltaTime;
|
||||
|
||||
const PathSegment& cps = _pathSegments[currentIndex];
|
||||
|
||||
// Interpolation variable
|
||||
@@ -120,8 +122,6 @@ void AutoNavigationHandler::updateCamera(double deltaTime) {
|
||||
camera()->setPositionVec3(cameraPosition);
|
||||
camera()->setRotation(cameraRotation);
|
||||
|
||||
_currentTime += deltaTime;
|
||||
|
||||
if (hasFinished()) {
|
||||
LINFO("Reached end of path.");
|
||||
_isPlaying = false;
|
||||
|
||||
Reference in New Issue
Block a user