Skip to content

Commit

Permalink
pass asset into GetAllProperties for blank fragment, just for good me…
Browse files Browse the repository at this point in the history
…asure
  • Loading branch information
atenfyr committed Jan 12, 2025
1 parent bb3aa0b commit 515221b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UAssetAPI/MainSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ public static FUnversionedHeader GenerateUnversionedHeader(ref List<PropertyData
int numSkip = 0;
if (asset.ObjectVersionUE5 >= ObjectVersionUE5.ADD_SOFTOBJECTPATH_LIST)
{
numSkip = Math.Min(asset.Mappings.GetAllProperties(highestSchema, parentModulePath?.ToString()).Count, FFragment.SkipMax);
numSkip = Math.Min(asset.Mappings.GetAllProperties(highestSchema, parentModulePath?.ToString(), asset).Count, FFragment.SkipMax);
}
else
{
numSkip = asset.Mappings.Schemas[highestSchema].Properties.Count == 0 ? 0 : Math.Min(asset.Mappings.GetAllProperties(highestSchema, parentModulePath?.ToString()).Count, FFragment.SkipMax);
numSkip = asset.Mappings.Schemas[highestSchema].Properties.Count == 0 ? 0 : Math.Min(asset.Mappings.GetAllProperties(highestSchema, parentModulePath?.ToString(), asset).Count, FFragment.SkipMax);
}
allFrags.Add(new FFragment(numSkip, 0, true, false));
}
Expand Down

0 comments on commit 515221b

Please sign in to comment.