You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
23 lines
763 B
C++
23 lines
763 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "PropertyEditorDelegates.h"
|
|
#include "PropertyHandle.h"
|
|
|
|
FPropertyAndParent::FPropertyAndParent(const TSharedRef<IPropertyHandle>& InPropertyHandle, const TArray<TWeakObjectPtr<UObject>>& InObjects) :
|
|
Property(*InPropertyHandle->GetProperty()),
|
|
Objects(InObjects)
|
|
{
|
|
checkf(InPropertyHandle->GetProperty() != nullptr, TEXT("Creating an FPropertyAndParent with a null property!"));
|
|
|
|
TSharedPtr<IPropertyHandle> ParentHandle = InPropertyHandle->GetParentHandle();
|
|
while (ParentHandle.IsValid())
|
|
{
|
|
const FProperty* ParentProperty = ParentHandle->GetProperty();
|
|
if (ParentProperty != nullptr)
|
|
{
|
|
ParentProperties.Add(ParentProperty);
|
|
}
|
|
|
|
ParentHandle = ParentHandle->GetParentHandle();
|
|
}
|
|
} |