[Backout] - CL18344116

[FYI] JeanFrancois.Dube
Original CL Desc
-----------------------------------------------------------------
World Partition: set the AsyncLoading flag on the dynamic level package to ensure it's not discoverable while streaming.
This fixes the case where the replication code was resolving an incomplete cell package and failed replication of non-streamed actors.

#rb patrick.enfedaque, richard.malo

#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 18347411 in //UE5/Release-5.0/... via CL 18347424
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18347436 by michael noland in ue5-release-engine-test branch]
This commit is contained in:
michael noland
2021-12-01 18:50:46 -05:00
parent 4754b76c73
commit 4502641ec6

View File

@@ -192,9 +192,6 @@ bool UWorldPartitionLevelStreamingDynamic::RequestLevel(UWorld* InPersistentWorl
if (IssueLoadRequests())
{
// Make sure this package isn't discoverable until it is fully loaded
CellLevelPackage->SetInternalFlags(EInternalObjectFlags::AsyncLoading);
// Editor immediately blocks on load and we also block if background level streaming is disabled.
if (InBlockPolicy == AlwaysBlock || (ShouldBeAlwaysLoaded() && InBlockPolicy != NeverBlock))
{
@@ -348,9 +345,6 @@ void UWorldPartitionLevelStreamingDynamic::FinalizeRuntimeLevel()
}
}
// Now that the loading is done, clear the async loading flag so this level is discoverable
RuntimePackage->ClearInternalFlags(EInternalObjectFlags::AsyncLoading);
SetLoadedLevel(RuntimeLevel);
// Broadcast level loaded event to blueprints