Fixed bug in SMaterialParametersOverviewTree causing Material Editor to crash when the user creates a Param node and views the UI panel containing the material parameters.

#jira UE-170172
#rb sebastien.hillaire
#preflight 638e1515bb6fefa472545f13

[CL 23391291 by massimo tristano in ue5-main branch]
This commit is contained in:
massimo tristano
2022-12-05 11:09:59 -05:00
parent 92f38de6e2
commit 8488ce6ba3
@@ -800,22 +800,10 @@ void SMaterialParametersOverviewTree::ShowSubParameters()
}
UDEditorRuntimeVirtualTextureParameterValue* VTParameter = Cast<UDEditorRuntimeVirtualTextureParameterValue>(Parameter);
//Don't show VT samples here
if (!VTParameter)
{
for (TSharedPtr<struct FSortedParamData> GroupChild : SortedParameters)
{
if (GroupChild->Group.GroupName == Property.ParameterGroup.GroupName
&& GroupChild->ParameterInfo.Association == ChildProperty->ParameterInfo.Association
&& GroupChild->ParameterInfo.Index == ChildProperty->ParameterInfo.Index)
{
GroupChild->Children.Add(ChildProperty);
}
}
}
UDEditorSparseVolumeTextureParameterValue* SVTParameter = Cast<UDEditorSparseVolumeTextureParameterValue>(Parameter);
if (!SVTParameter)
// Don't add child property to this group if parameter is of type 'Virtual Texture' or 'Sparse Volume Texture'
if (!VTParameter && !SVTParameter)
{
for (TSharedPtr<struct FSortedParamData> GroupChild : SortedParameters)
{