/Engine/Source/Runtime/Engine/Classes/Materials/Material.h
Recompute the ddc cache key and reload the material in case the key is not the same. It will also make sure lightmass texture reference are up to date
void UpdateMaterialShaderCacheAndTextureReferences()