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:
@@ -10,7 +10,7 @@
|
||||
#include "Animation/AimOffsetBlendSpace1D.h"
|
||||
#include "UObject/UObjectHash.h"
|
||||
#include "UObject/UObjectIterator.h"
|
||||
#include "Framework/MultiBox/MultiBoxBuilder.h"
|
||||
#include "ToolMenus.h"
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
// UAnimGraphNode_RotationOffsetBlendSpace
|
||||
@@ -208,17 +208,16 @@ void UAnimGraphNode_AimOffsetLookAt::ValidateAnimNodeDuringCompilation(class USk
|
||||
}
|
||||
}
|
||||
|
||||
void UAnimGraphNode_AimOffsetLookAt::GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const
|
||||
void UAnimGraphNode_AimOffsetLookAt::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
|
||||
{
|
||||
if (!Context.bIsDebugging)
|
||||
if (!Context->bIsDebugging)
|
||||
{
|
||||
// add an option to convert to single frame
|
||||
Context.MenuBuilder->BeginSection("AnimGraphNodeBlendSpacePlayer", NSLOCTEXT("A3Nodes", "BlendSpaceHeading", "Blend Space"));
|
||||
{
|
||||
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
|
||||
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().ConvertToAimOffsetSimple);
|
||||
FToolMenuSection& Section = Menu->AddSection("AnimGraphNodeBlendSpacePlayer", NSLOCTEXT("A3Nodes", "BlendSpaceHeading", "Blend Space"));
|
||||
Section.AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
|
||||
Section.AddMenuEntry(FGraphEditorCommands::Get().ConvertToAimOffsetSimple);
|
||||
}
|
||||
Context.MenuBuilder->EndSection();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user