mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 17:09:05 -05:00
hasFinished should return true if there is no path
This commit is contained in:
@@ -177,6 +177,10 @@ const SceneGraphNode* AutoNavigationHandler::anchor() const {
|
||||
}
|
||||
|
||||
bool AutoNavigationHandler::hasFinished() const {
|
||||
if (_pathSegments.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned int lastIndex = (unsigned int)_pathSegments.size() - 1;
|
||||
return _currentSegmentIndex > lastIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user