- Stop writing out saved ini files after reloading ini after writing a default property (the timing of the write was getting the default and saved out of sync)

#jira UE-183508, UE-166236
#preflight https://horde.devtools.epicgames.com/job/64404d75a35280ed4f925b2d

[CL 25120275 by josh adams in ue5-main branch]
This commit is contained in:
josh adams
2023-04-19 19:47:50 -04:00
parent 40fe5af915
commit f024fd97c2
@@ -3218,7 +3218,10 @@ void UObject::UpdateSinglePropertyInConfigFile(const FProperty* InProperty, cons
// then we don't want to touch GConfig
if (OverridePlatform.Len() == 0)
{
FConfigContext::ForceReloadIntoGConfig().Load(*GetClass()->ClassConfigName.ToString());
FConfigContext Context = FConfigContext::ForceReloadIntoGConfig();
// don't write the Saved out, as we just finished writing what we needed
Context.bWriteDestIni = false;
Context.Load(*GetClass()->ClassConfigName.ToString());
}
}
else