You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user