datasmith: fix broken sanitation introduced in CL 18236389

#ROBOMERGE-AUTHOR: johan.duparc
#ROBOMERGE-SOURCE: CL 18281797 in //UE5/Release-5.0/... via CL 18281809
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18281822 by johan duparc in ue5-release-engine-test branch]
This commit is contained in:
johan duparc
2021-11-24 05:49:42 -05:00
parent cad51a8a73
commit 3eaeeff0e8

View File

@@ -28,7 +28,7 @@ public:
virtual bool IsA( EDatasmithElementType InType ) const override { return EnumHasAnyFlags( GetElementType(), InType); }
virtual const TCHAR* GetName() const override { return *Name.Get(); }
virtual void SetName(const TCHAR* InName) override { Name = InName; }
virtual void SetName(const TCHAR* InName) override { Name = FDatasmithUtils::SanitizeObjectName(InName); }
virtual const TCHAR* GetLabel() const override { const FString& Tmp = Label.Get(); return Tmp.IsEmpty() ? GetName() : *Tmp; }
virtual void SetLabel(const TCHAR* InLabel) override { Label = FDatasmithUtils::SanitizeObjectName(InLabel); }