You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix socket renaming display bug in Persona
[CL 2042572 by Martin Wilson in Main branch]
This commit is contained in:
@@ -507,6 +507,7 @@ void FDisplayedSocketInfo::GenerateWidgetForNameColumn( TSharedPtr< SHorizontalB
|
||||
|
||||
FString ToolTip = GetSocketToolTip();
|
||||
|
||||
TAttribute<FText> SocketNameAttr = TAttribute<FText>::Create(TAttribute<FText>::FGetter::CreateSP(this, &FDisplayedSocketInfo::GetSocketNameAsText));
|
||||
TSharedPtr< SInlineEditableTextBlock > InlineWidget;
|
||||
|
||||
Box->AddSlot()
|
||||
@@ -514,7 +515,7 @@ void FDisplayedSocketInfo::GenerateWidgetForNameColumn( TSharedPtr< SHorizontalB
|
||||
[
|
||||
SAssignNew( InlineWidget, SInlineEditableTextBlock )
|
||||
.ColorAndOpacity( TextColor )
|
||||
.Text( FText::FromName(SocketData->SocketName) )
|
||||
.Text( SocketNameAttr )
|
||||
.HighlightText( FilterText )
|
||||
.Font( TextFont )
|
||||
.ToolTipText( ToolTip )
|
||||
|
||||
@@ -242,6 +242,9 @@ public:
|
||||
/** Requests a rename on the socket item */
|
||||
virtual void RequestRename() OVERRIDE;
|
||||
|
||||
/** Return socket name as FText for display in skeleton tree */
|
||||
FText GetSocketNameAsText() const { return FText::FromName(SocketData->SocketName); }
|
||||
|
||||
protected:
|
||||
/** Hidden constructor, always use Make above */
|
||||
FDisplayedSocketInfo( USkeletalMeshSocket* InSource, ESocketParentType::Type InParentType )
|
||||
|
||||
Reference in New Issue
Block a user