#UE4 Fix issue where when using -FixupStringAssetReferences, it would fixup the references inside the package, but not the package header. Now the code that finds string asset references for the package header calls the redirector callback

#codereview michael.noland, Jaroslaw.Palczynski

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2672504 by Ben.Zeigler on 2015/08/28 12:43:30.

[CL 2673370 by Ben Zeigler in Main branch]
This commit is contained in:
Ben Zeigler
2015-08-28 19:36:40 -04:00
committed by Ben.Zeigler@epicgames.com
parent a939d907d6
commit 2b5d68fd4f

View File

@@ -723,7 +723,13 @@ public:
{
if (Value.IsValid())
{
const FString& Path = Value.ToString();
FString Path = Value.ToString();
if (FCoreUObjectDelegates::StringAssetReferenceSaving.IsBound())
{
// This picks up any redirectors
Path = FCoreUObjectDelegates::StringAssetReferenceSaving.Execute(Path);
}
if (GetIniFilenameFromObjectsReference(Path) != nullptr)
{
StringAssetReferencesMap.AddUnique(Path);