Make tags singular
This commit is contained in:
parent
6ea34785c8
commit
8f20693ffa
|
@ -18,7 +18,8 @@ static FString GetRelevantTagAsString(const AActor &Actor)
|
|||
{
|
||||
if ((Tag != ECityObjectLabel::None) && (Tag != ECityObjectLabel::Other))
|
||||
{
|
||||
return ATagger::GetTagAsString(Tag).ToLower();
|
||||
auto Str = ATagger::GetTagAsString(Tag).ToLower();
|
||||
return (Str.EndsWith(TEXT("s")) ? Str.LeftChop(1) : Str);
|
||||
}
|
||||
}
|
||||
return TEXT("unknown");
|
||||
|
|
|
@ -114,7 +114,7 @@ void ATagger::GetTagsOfTaggedActor(const AActor &Actor, TArray<ECityObjectLabel>
|
|||
FString ATagger::GetTagAsString(const ECityObjectLabel Label)
|
||||
{
|
||||
switch (Label) {
|
||||
#define CARLA_GET_LABEL_STR(lbl) case ECityObjectLabel:: lbl : return #lbl;
|
||||
#define CARLA_GET_LABEL_STR(lbl) case ECityObjectLabel:: lbl : return TEXT(#lbl);
|
||||
default:
|
||||
CARLA_GET_LABEL_STR(None)
|
||||
CARLA_GET_LABEL_STR(Buildings)
|
||||
|
|
Loading…
Reference in New Issue