Work to provide ConditionalPopulateNavOctreeActor Delgate for the Nav System.

[at]Mieszko.Zielinski

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 5284289 via CL 5284389 via CL 5292468 via CL 5292570
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 5300006 by stephen holmes in Dev-Networking branch]
This commit is contained in:
stephen holmes
2019-03-05 15:22:01 -05:00
parent 2ad7716792
commit 6fbf8ecbdb
2 changed files with 9 additions and 1 deletions

View File

@@ -654,7 +654,7 @@ bool UNavigationSystemV1::ConditionalPopulateNavOctree()
const bool bLegalActor = Actor && !Actor->IsPendingKill();
if (bLegalActor)
{
UpdateActorAndComponentsInNavOctree(*Actor);
ConditionalPopulateNavOctreeActor(*Actor);
}
}
}
@@ -2977,6 +2977,11 @@ void UNavigationSystemV1::OnActorUnregistered(AActor* Actor)
}
}
void UNavigationSystemV1::ConditionalPopulateNavOctreeActor(AActor& Actor)
{
UpdateActorAndComponentsInNavOctree(Actor);
}
void UNavigationSystemV1::FindElementsInNavOctree(const FBox& QueryBox, const FNavigationOctreeFilter& Filter, TArray<FNavigationOctreeElement>& Elements)
{
if (NavOctree.IsValid() == false)