// Copyright Epic Games, Inc. All Rights Reserved. #include "PropertyEditorDelegates.h" #include "PropertyHandle.h" FPropertyAndParent::FPropertyAndParent(const TSharedRef& InPropertyHandle, const TArray>& InObjects) : Property(*InPropertyHandle->GetProperty()), Objects(InObjects) { checkf(InPropertyHandle->GetProperty() != nullptr, TEXT("Creating an FPropertyAndParent with a null property!")); TSharedPtr ParentHandle = InPropertyHandle->GetParentHandle(); while (ParentHandle.IsValid()) { const FProperty* ParentProperty = ParentHandle->GetProperty(); if (ParentProperty != nullptr) { ParentProperties.Add(ParentProperty); } ParentHandle = ParentHandle->GetParentHandle(); } }