Files
UnrealEngineUWP/Engine/Source/Runtime/NavigationSystem/Private/NavigationDataHandler.cpp
Stephen Holmes 1e39c05a09 Fix for crash while loading navmesh with async static mesh compilation enabled.
AddElementToNavOctree (through some of its resulting function calls) modifies PendingOctreeUpdates so invalidates the iterators, (via WaitUntilAsyncPropertyReleased(), UpdateComponentInNavOctree() ,  RegisterNavOctreeElement()).

This means we can't iterate through the TSet PendingOctreeUpdates in the normal way. Previously the code iterated through this which also left us open to other potential bugs in that we may have tried to modify elements we had already processed.

#Jira UE-156914
#review
#preflight 6331ae58b4515b7e22bb6ac8

[CL 22182942 by Stephen Holmes in ue5-main branch]
2022-09-26 10:16:31 -04:00

19 KiB