2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-09-10 11:35:20 -04:00
|
|
|
|
|
|
|
|
#include "PropertyEditorDelegates.h"
|
|
|
|
|
#include "PropertyHandle.h"
|
|
|
|
|
|
|
|
|
|
FPropertyAndParent::FPropertyAndParent(const TSharedRef<IPropertyHandle>& InPropertyHandle, const TArray<TWeakObjectPtr<UObject>>& InObjects) :
|
|
|
|
|
Property(*InPropertyHandle->GetProperty()),
|
|
|
|
|
Objects(InObjects)
|
|
|
|
|
{
|
|
|
|
|
TSharedPtr<IPropertyHandle> ParentHandle = InPropertyHandle->GetParentHandle();
|
|
|
|
|
while (ParentHandle.IsValid())
|
|
|
|
|
{
|
2019-12-13 11:07:03 -05:00
|
|
|
const FProperty* ParentProperty = ParentHandle->GetProperty();
|
2019-09-10 11:35:20 -04:00
|
|
|
if (ParentProperty != nullptr)
|
|
|
|
|
{
|
|
|
|
|
ParentProperties.Add(ParentProperty);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ParentHandle = ParentHandle->GetParentHandle();
|
|
|
|
|
}
|
|
|
|
|
}
|