You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Graph Editor node menus converted to ToolMenus
#rb none #rnx [CL 7900622 by Rex Hill in Dev-Editor branch]
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "AnimGraphNode_SequencePlayer.h"
|
||||
#include "EdGraphSchema_K2_Actions.h"
|
||||
#include "Modules/ModuleManager.h"
|
||||
#include "Framework/MultiBox/MultiBoxBuilder.h"
|
||||
#include "ToolMenus.h"
|
||||
|
||||
#include "Kismet2/CompilerResultsLog.h"
|
||||
#include "GraphEditorActions.h"
|
||||
@@ -344,17 +344,16 @@ void UAnimGraphNode_SequencePlayer::ValidateAnimNodeDuringCompilation(class USke
|
||||
}
|
||||
}
|
||||
|
||||
void UAnimGraphNode_SequencePlayer::GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const
|
||||
void UAnimGraphNode_SequencePlayer::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
|
||||
{
|
||||
if (!Context.bIsDebugging)
|
||||
if (!Context->bIsDebugging)
|
||||
{
|
||||
// add an option to convert to single frame
|
||||
Context.MenuBuilder->BeginSection("AnimGraphNodeSequencePlayer", NSLOCTEXT("A3Nodes", "SequencePlayerHeading", "Sequence Player"));
|
||||
{
|
||||
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
|
||||
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().ConvertToSeqEvaluator);
|
||||
FToolMenuSection& Section = Menu->AddSection("AnimGraphNodeSequencePlayer", NSLOCTEXT("A3Nodes", "SequencePlayerHeading", "Sequence Player"));
|
||||
Section.AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
|
||||
Section.AddMenuEntry(FGraphEditorCommands::Get().ConvertToSeqEvaluator);
|
||||
}
|
||||
Context.MenuBuilder->EndSection();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user