From UDN: [Link Removed]

Proposed fix:

int32 FHLSLMaterialTranslator::TextureParameter(FName ParameterName, UTexture* InDefaultValue, int32& TextureReferenceIndex, EMaterialSamplerType SamplerType, ESamplerSourceMode SamplerSource)
UTexture* DefaultValue = InDefaultValue;

// If we're compiling a function, give the function a chance to override the default parameter value
FMaterialParameterMetadata Meta;
//@CYA EDIT && nullptr != Meta.Value.Texture because we do not want to crash when calling DefaultValue->GetMaterialType(); below
if (GetParameterOverrideValueForCurrentFunction(EMaterialParameterType::Texture, ParameterName, Meta) && nullptr != Meta.Value.Texture)

{ DefaultValue = Meta.Value.Texture; }

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-149949 in the post.

Login to Vote

CreatedApr 22, 2022
ResolvedApr 25, 2022
UpdatedApr 25, 2022