Skip to content

Commit

Permalink
fix(#38): api call for 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ashe23 committed Jul 6, 2022
1 parent c8d5ebc commit af732be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ int32 FProjectCleanerDataManager::DeleteAllUnusedAssets()
}

// Cleaning empty packages
const TSet<FName> EmptyPackages = AssetRegistry->Get().GetCachedEmptyPackagesCopy();
const TSet<FName> EmptyPackages = AssetRegistry->Get().GetCachedEmptyPackages();
TArray<UPackage*> AssetPackages;
for (const auto& EmptyPackage : EmptyPackages)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int64 ProjectCleanerUtility::GetTotalSize(const TArray<FAssetData>& Assets)
int64 Size = 0;
for (const auto& Asset : Assets)
{
const auto AssetPackageData = AssetRegistry.Get().GetAssetPackageDataCopy(Asset.PackageName);
const auto AssetPackageData = AssetRegistry.Get().GetAssetPackageData(Asset.PackageName);
if (!AssetPackageData) continue;
Size += AssetPackageData->DiskSize;
}
Expand Down

0 comments on commit af732be

Please sign in to comment.