More MCP refactoring.

This commit is contained in:
2026-03-07 02:36:43 -05:00
parent 282ee3ef33
commit 114464dbfe
6 changed files with 103 additions and 444 deletions

View File

@@ -1136,7 +1136,7 @@ UAnimationStateMachineGraph* MCPUtils::FindStateMachineGraph(UBlueprint* BP, con
return nullptr;
}
UAnimStateNode* MCPUtils::FindStateByName(UAnimationStateMachineGraph* SMGraph, const FString& StateName)
UAnimStateNode* MCPUtils::FindStateByName(UAnimationStateMachineGraph* SMGraph, const FString& StateName, MCPErrorCallback Error)
{
for (UEdGraphNode* Node : SMGraph->Nodes)
{
@@ -1148,6 +1148,7 @@ UAnimStateNode* MCPUtils::FindStateByName(UAnimationStateMachineGraph* SMGraph,
}
}
}
Error.SetError(FString::Printf(TEXT("State '%s' not found in graph '%s'"), *StateName, *SMGraph->GetName()));
return nullptr;
}