Interchange: Pipeline now have an optional "asset name" property use when importing 1 asset into the content browser.

#jira UE-178095
#rb jeanluc.corenthin
#rnx
#preflight 6467a3787958f15a8b8abd4d

[CL 25546937 by Alexis Matte in ue5-main branch]
This commit is contained in:
Alexis Matte
2023-05-19 12:48:58 -04:00
parent 7e9a4704e2
commit e750ec5066
11 changed files with 87 additions and 25 deletions
@@ -295,7 +295,7 @@ void FInterchangePipelineBaseDetailsCustomization::CustomizeDetails(IDetailLayou
{
continue;
}
const FName PropertyName = PropertyHandle.Get().GetProperty() ? PropertyHandle.Get().GetProperty()->GetFName() : NAME_None;
const FName PropertyName = PropertyPtr ? PropertyPtr->GetFName() : NAME_None;
if (PropertyName == UInterchangePipelineBase::GetPropertiesStatesPropertyName())
{
CachedDetailBuilder->HideProperty(PropertyHandle);
@@ -306,6 +306,18 @@ void FInterchangePipelineBaseDetailsCustomization::CustomizeDetails(IDetailLayou
{
continue;
}
//If the property UObject owner class is not the same type as the main pipeline class, it mean
//we deal with a sub pipeline and we must hide property that have the "StandAlonePipelineProperty" meta data
if(UClass* InterchangePipelinePropertyClass = Cast<UClass>(PropertyPtr->GetOwnerUObject()))
{
if (InterchangePipeline->GetClass() != InterchangePipelinePropertyClass && PropertyHandle->GetBoolMetaData(FName("StandAlonePipelineProperty")))
{
CachedDetailBuilder->HideProperty(PropertyHandle);
continue;
}
}
FName PropertyPath = FName(PropertyPtr->GetPathName());
CachedDetailBuilder->HideProperty(PropertyHandle);