Reset sublevels for each map

This commit is contained in:
bernat 2020-12-02 19:45:52 +01:00 committed by doterop
parent af522c247b
commit 706d905ed1
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,6 @@ void UPrepareAssetsForCookingCommandlet::GenerateMapPathsFile(
const FString &PropsMapPath)
{
FString MapPathData;
TArray<FString> Sublevels;
IFileManager &FileManager = IFileManager::Get();
for (const auto &Map : AssetsPaths.MapsPaths)
{
@ -381,6 +380,7 @@ void UPrepareAssetsForCookingCommandlet::GenerateMapPathsFile(
{
// replacing relative /Game/... address by absolute address to be able to parse files
FString FullPath(FPaths::GameDir() + TEXT("/Content/") + Map.Path.Mid(6, Map.Path.Len() - 6) + TEXT("/Sublevels/") + Map.Name);
TArray<FString> Sublevels;
FileManager.FindFiles(Sublevels, *FullPath, TEXT("*.umap"));
for (auto Sublevel : Sublevels)
{