Merge pull request #1198 from aws-lumberyard-dev/Prefab/RemoveFileSizeLimits

Remove file size limits when loading prefabs and prefab-based-levels
This commit is contained in:
srikappa-amzn
2021-06-09 10:05:45 -07:00
committed by GitHub
4 changed files with 4 additions and 11 deletions
@@ -74,7 +74,7 @@ namespace AzToolsFramework
return InvalidTemplateId;
}
auto readResult = AZ::Utils::ReadFile(GetFullPath(filePath).Native(), MaxPrefabFileSize);
auto readResult = AZ::Utils::ReadFile(GetFullPath(filePath).Native(), AZStd::numeric_limits<size_t>::max());
if (!readResult.IsSuccess())
{
AZ_Error(
@@ -21,8 +21,6 @@ namespace AzToolsFramework
{
namespace Prefab
{
constexpr size_t MaxPrefabFileSize = 1024 * 1024;
/*!
* PrefabLoaderInterface
* Interface for saving/loading Prefab files.