This commit is contained in:
2025-04-18 18:17:02 +08:00
parent 80fdce96b2
commit e15eafe5d4
18 changed files with 259 additions and 493 deletions

View File

@@ -84,7 +84,7 @@ void UDismembermentGraphSchema::GetContextMenuActions(UToolMenu* Menu, UGraphNod
FUIAction(
FExecuteAction::CreateLambda([Context]()
{
if (UDismembermentGraphNode* Node = Cast<UDismembermentGraphNode>(Context->Node))
if (const UDismembermentGraphNode* Node = Cast<UDismembermentGraphNode>(Context->Node))
{
// TODO: Implement node preview
}
@@ -100,7 +100,7 @@ void UDismembermentGraphSchema::GetContextMenuActions(UToolMenu* Menu, UGraphNod
// Add general graph actions
{
FToolMenuSection& Section = Menu->AddSection("DismembermentGraphActions", LOCTEXT("GraphActionsMenuHeader", "Graph Actions"));
Section.AddMenuEntry(FGraphEditorCommands::Get().SelectAllNodes);
Section.AddMenuEntry(FGenericCommands::Get().SelectAll);
Section.AddMenuEntry(
"ArrangeNodes",
LOCTEXT("ArrangeNodes", "Arrange Nodes"),