fixed black textures bug

This commit is contained in:
iAmAsval 2020-12-30 00:44:44 +01:00
parent f77dcddb60
commit bb28447159
2 changed files with 6 additions and 0 deletions

3
.gitignore vendored
View File

@ -328,3 +328,6 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder
.mfractor/
.github

View File

@ -15,14 +15,17 @@ namespace FModel.PakReader.Parsers.Objects
Data = new byte[Header.ElementCount];
if (Header.ElementCount == 0)
{
Data = null;
return;
}
else if ((bulkDataFlags & (uint)EBulkDataFlags.BULKDATA_Unused) != 0)
{
Data = null;
return;
}
else if ((bulkDataFlags & (uint)EBulkDataFlags.BULKDATA_OptionalPayload) != 0) //.uptnl
{
Data = null;
return;
}
else if ((bulkDataFlags & (uint)EBulkDataFlags.BULKDATA_ForceInlinePayload) != 0) //.uexp