Fixed container diff regression introduced in cl 4802047 - containers differences were being detected multiple times

#rb None
#jira UE-69071

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: dan.oconnor
#ROBOMERGE-SOURCE: CL 4922982 in //UE4/Release-4.22/... via CL 4922983
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5016832 by dan oconnor in Dev-VR branch]
This commit is contained in:
dan oconnor
2019-02-16 01:15:36 -05:00
parent 29893a312d
commit 5f482b6f31
@@ -111,14 +111,17 @@ void SDetailsViewBase::HideFilterArea(bool bHide)
static void GetPropertiesInOrderDisplayedRecursive(const TArray< TSharedRef<FDetailTreeNode> >& TreeNodes, TArray< FPropertyPath > &OutLeaves)
{
for (auto& TreeNode : TreeNodes)
for( const TSharedRef<FDetailTreeNode>& TreeNode : TreeNodes )
{
if (TreeNode->IsLeaf())
const bool bIsPropertyRoot = TreeNode->IsLeaf() ||
( TreeNode->GetPropertyNode() &&
TreeNode->GetPropertyNode()->GetProperty() );
if( bIsPropertyRoot )
{
FPropertyPath Path = TreeNode->GetPropertyPath();
// Some leaf nodes are not associated with properties, specifically the collision presets.
// @todo doc: investigate what we can do about this, result is that for these fields
// we can't highlight hte property in the diff tool.
// we can't highlight the property in the diff tool.
if( Path.GetNumProperties() != 0 )
{
OutLeaves.Push(Path);