Files
UnrealEngine/Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Private/MetaHumanPipelineSlotSelection.cpp
2025-05-18 13:04:45 +08:00

27 lines
661 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MetaHumanPipelineSlotSelection.h"
bool operator<(const FMetaHumanPipelineSlotSelection& A, const FMetaHumanPipelineSlotSelection& B)
{
const int32 ParentPathComparison = A.ParentItemPath.Compare(B.ParentItemPath);
if (ParentPathComparison != 0)
{
return ParentPathComparison < 0;
}
if (A.SelectedItem < B.SelectedItem)
{
return true;
}
return A.SelectedItem == B.SelectedItem
&& A.SlotName.CompareIndexes(B.SlotName) < 0;
}
FMetaHumanPaletteItemPath FMetaHumanPipelineSlotSelection::GetSelectedItemPath() const
{
return FMetaHumanPaletteItemPath(ParentItemPath, SelectedItem);
}