mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 09:59:44 -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)
|
bool AutoNavigationHandler::handleInstruction(const Instruction& instruction, int index)
|
||||||
{
|
{
|
||||||
CameraState& currentLast = _pathSegments.back().end;
|
CameraState startState = _pathSegments.empty() ? currentCameraState() : _pathSegments.back().end;
|
||||||
CameraState startState = _pathSegments.empty() ? currentCameraState() : currentLast;
|
|
||||||
|
|
||||||
CameraState endState;
|
CameraState endState;
|
||||||
double duration, startTime;
|
double duration, startTime;
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ private:
|
|||||||
glm::dvec3 computeTargetPositionAtNode(const SceneGraphNode* node,
|
glm::dvec3 computeTargetPositionAtNode(const SceneGraphNode* node,
|
||||||
glm::dvec3 prevPos, double height);
|
glm::dvec3 prevPos, double height);
|
||||||
|
|
||||||
|
// This list essentially represents the camera path
|
||||||
std::vector<PathSegment> _pathSegments;
|
std::vector<PathSegment> _pathSegments;
|
||||||
|
|
||||||
double _currentTime;
|
double _currentTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user