Lots of refactoring
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user