Commit c2ced086 authored by DoinLakeFlyer's avatar DoinLakeFlyer

Fix logic of when adding Landing item is allowed

parent f48f8c8c
......@@ -2341,13 +2341,15 @@ void MissionController::setCurrentPlanViewSeqNum(int sequenceNumber, bool force)
if (currentSeqNumber == sequenceNumber && _isROIBeginItem(simpleItem)) {
_isROIBeginCurrentItem = true;
}
}
if (simpleItem->specifiesCoordinate() && !simpleItem->isStandaloneCoordinate()) {
if (viIndex != 0) {
// Complex items are assumed to be fly through
if (!simpleItem || (simpleItem->specifiesCoordinate() && !simpleItem->isStandaloneCoordinate())) {
lastFlyThroughSeqNum = currentSeqNumber;
}
}
if (currentSeqNumber == sequenceNumber) {
pVI->setIsCurrentItem(true);
pVI->setHasCurrentChildItem(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment