MCP can now control function args
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "K2Node_VariableGet.h"
|
||||
#include "K2Node_CallFunction.h"
|
||||
#include "K2Node_FunctionEntry.h"
|
||||
#include "FunctionArgs.h"
|
||||
#include "MaterialGraph/MaterialGraphNode.h"
|
||||
|
||||
MCPGraphExport::MCPGraphExport(UEdGraph* InGraph)
|
||||
@@ -213,6 +214,10 @@ void MCPGraphExport::EmitNode(UEdGraphNode* Node)
|
||||
|
||||
Output.Appendf(TEXT("\nnode %s: %s\n"), *MCPUtils::FormatName(Node), *MCPUtils::FormatNodeTitle(Node));
|
||||
|
||||
// Emit function args (if applicable).
|
||||
if (MCPFunctionArgs::HasArgs(Node))
|
||||
Output.Appendf(TEXT(" args %s\n"), *MCPFunctionArgs::GetArgs(Node));
|
||||
|
||||
// Emit material expression properties (if applicable).
|
||||
EmitMaterialProperties(Node, Output, true);
|
||||
|
||||
@@ -239,7 +244,7 @@ void MCPGraphExport::EmitNode(UEdGraphNode* Node)
|
||||
}
|
||||
if (!ReturnPins.IsEmpty())
|
||||
{
|
||||
Output.Appendf(TEXT(" return %s\n"), *ReturnPins);
|
||||
Output.Appendf(TEXT(" output-pins %s\n"), *ReturnPins);
|
||||
}
|
||||
|
||||
// Emit output exec pins as goto statements.
|
||||
|
||||
Reference in New Issue
Block a user