Fix Horde issue 306851

#horde 306851
#rb none

[CL 25548183 by matija kecman in ue5-main branch]
This commit is contained in:
matija kecman
2023-05-19 13:51:11 -04:00
parent 012b1f8635
commit c1ba1e5d22
@@ -425,6 +425,7 @@ void UBakeRenderCaptureTool::CreateAssets(UWorld* SourceWorld, UObject* SourceAs
const bool bPackedMRS = ResultSettings->PackedMRSMap != nullptr;
const bool bSubsurfaceMaterial = ResultSettings->SubsurfaceColorMap || ResultSettings->OpacityMap;
#if WITH_EDITOR
{
// Choose the material
TObjectPtr<UMaterialInstanceDynamic> Material = ResultSettings->PackedMRSMap ? PreviewMaterialPackedRC : PreviewMaterialRC;
@@ -478,6 +479,7 @@ void UBakeRenderCaptureTool::CreateAssets(UWorld* SourceWorld, UObject* SourceAs
NewMaterial->PostEditChange();
}
}
#endif // WITH_EDITOR
auto CreateTextureAsset = [this, &BaseName, &SourceWorld, &SourceAsset] (
const FString& TexParamName,