Reset the module manager cache after recompiling an unloaded module just in case it's a brand new one.

#rb none
#jira UE-69366

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 4953241 in //UE4/Release-4.22/... via CL 4968360
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5030942 by steve robb in Dev-VR branch]
This commit is contained in:
steve robb
2019-02-16 05:55:03 -05:00
parent bc8100f654
commit 7001e90d0b

View File

@@ -675,6 +675,11 @@ bool FHotReloadModule::RecompileModule(const FName InModuleName, const bool bRel
Ar.Logf( TEXT( "Unloading module before compile." ) );
ModuleManager.UnloadOrAbandonModuleWithCallback( InModuleName, Ar );
}
else
{
// Reset the module cache in case it's a new module that we probably didn't know about already.
ModuleManager.ResetModulePathsCache();
}
// Reload the module if it was loaded before we recompiled
if ((bWasModuleLoaded || bForceCodeProject) && bReloadAfterRecompile)