Lots of refactoring

This commit is contained in:
2026-03-13 14:26:04 -04:00
parent e3b5d32345
commit 7cfe73eca8
65 changed files with 246 additions and 364 deletions

View File

@@ -4,6 +4,7 @@
#include "MCPHandler.h"
#include "MCPFetcher.h"
#include "MCPUtils.h"
#include "MCPServer.h"
#include "EdGraph/EdGraph.h"
#include "EdGraph/EdGraphNode.h"
#include "MaterialGraph/MaterialGraphNode.h"
@@ -43,10 +44,9 @@ public:
if (!FoundNode->CanUserDeleteNode())
{
MCPErrorCallback Error(Result);
return Error.SetError(FString::Printf(
TEXT("Cannot delete node '%s' in graph '%s' — it is not deletable."),
*NodeTitle, *GraphName));
UMCPServer::Printf(TEXT("ERROR: Cannot delete node '%s' in graph '%s' — it is not deletable.\n"),
*NodeTitle, *GraphName);
return;
}
if (Cast<UMaterialGraphNode>(FoundNode))