55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Entries/AnimNextEventGraphEntry.h"
|
|
|
|
#include "AnimNextRigVMAsset.h"
|
|
#include "UncookedOnlyUtils.h"
|
|
#include "AnimNextEdGraph.h"
|
|
#include "AnimNextRigVMAssetEditorData.h"
|
|
|
|
FText UAnimNextEventGraphEntry::GetDisplayName() const
|
|
{
|
|
return FText::FromName(GraphName);
|
|
}
|
|
|
|
FText UAnimNextEventGraphEntry::GetDisplayNameTooltip() const
|
|
{
|
|
return FText::FromName(GraphName);
|
|
}
|
|
|
|
void UAnimNextEventGraphEntry::SetEntryName(FName InName, bool bSetupUndoRedo)
|
|
{
|
|
if(bSetupUndoRedo)
|
|
{
|
|
Modify();
|
|
}
|
|
|
|
GraphName = InName;
|
|
|
|
BroadcastModified(EAnimNextEditorDataNotifType::EntryRenamed);
|
|
}
|
|
|
|
const FName& UAnimNextEventGraphEntry::GetGraphName() const
|
|
{
|
|
return GraphName;
|
|
}
|
|
|
|
URigVMGraph* UAnimNextEventGraphEntry::GetRigVMGraph() const
|
|
{
|
|
return Graph;
|
|
}
|
|
|
|
URigVMEdGraph* UAnimNextEventGraphEntry::GetEdGraph() const
|
|
{
|
|
return EdGraph;
|
|
}
|
|
|
|
void UAnimNextEventGraphEntry::SetRigVMGraph(URigVMGraph* InGraph)
|
|
{
|
|
Graph = InGraph;
|
|
}
|
|
|
|
void UAnimNextEventGraphEntry::SetEdGraph(URigVMEdGraph* InGraph)
|
|
{
|
|
EdGraph = CastChecked<UAnimNextEdGraph>(InGraph, ECastCheckedType::NullAllowed);
|
|
} |