Graph Editor node menus converted to ToolMenus

#rb none
#rnx

[CL 7900622 by Rex Hill in Dev-Editor branch]
This commit is contained in:
Rex Hill
2019-08-08 16:32:13 -04:00
parent 5d516e8ca8
commit dc107df197
87 changed files with 520 additions and 496 deletions

View File

@@ -3,7 +3,7 @@
#include "AnimGraphNode_PoseBlendNode.h"
#include "EdGraphSchema_K2_Actions.h"
#include "Modules/ModuleManager.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#include "ToolMenus.h"
#include "GraphEditorActions.h"
#include "ARFilter.h"
@@ -244,16 +244,15 @@ bool UAnimGraphNode_PoseBlendNode::DoesSupportTimeForTransitionGetter() const
return false;
}
void UAnimGraphNode_PoseBlendNode::GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const
void UAnimGraphNode_PoseBlendNode::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
{
if (!Context.bIsDebugging)
if (!Context->bIsDebugging)
{
// add an option to convert to single frame
Context.MenuBuilder->BeginSection("AnimGraphNodePoseBlender", LOCTEXT("PoseBlenderHeading", "Pose Blender"));
{
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().ConvertToPoseByName);
FToolMenuSection& Section = Menu->AddSection("AnimGraphNodePoseBlender", LOCTEXT("PoseBlenderHeading", "Pose Blender"));
Section.AddMenuEntry(FGraphEditorCommands::Get().ConvertToPoseByName);
}
Context.MenuBuilder->EndSection();
}
}