mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-15 10:09:48 -05:00
Remove risk of access violation and add a comment
This commit is contained in:
@@ -191,8 +191,7 @@ void AutoNavigationHandler::continuePath() {
|
||||
|
||||
bool AutoNavigationHandler::handleInstruction(const Instruction& instruction, int index)
|
||||
{
|
||||
CameraState& currentLast = _pathSegments.back().end;
|
||||
CameraState startState = _pathSegments.empty() ? currentCameraState() : currentLast;
|
||||
CameraState startState = _pathSegments.empty() ? currentCameraState() : _pathSegments.back().end;
|
||||
|
||||
CameraState endState;
|
||||
double duration, startTime;
|
||||
|
||||
@@ -81,6 +81,7 @@ private:
|
||||
glm::dvec3 computeTargetPositionAtNode(const SceneGraphNode* node,
|
||||
glm::dvec3 prevPos, double height);
|
||||
|
||||
// This list essentially represents the camera path
|
||||
std::vector<PathSegment> _pathSegments;
|
||||
|
||||
double _currentTime;
|
||||
|
||||
Reference in New Issue
Block a user