Refactoring more MCP handlers.
This commit is contained in:
@@ -80,7 +80,7 @@ public:
|
||||
{
|
||||
if (IfaceDesc.Interface)
|
||||
{
|
||||
IfaceList.Add(MakeShared<FJsonValueString>(IfaceDesc.Interface->GetName()));
|
||||
IfaceList.Add(MakeShared<FJsonValueString>(MCPUtils::FormatName(IfaceDesc.Interface)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
FTopLevelAssetPath InterfacePath = FoundInterface->GetClassPathName();
|
||||
|
||||
UE_LOG(LogTemp, Display, TEXT("BlueprintMCP: Removing interface '%s' from Blueprint '%s' (preserveFunctions: %s)"),
|
||||
*FoundInterface->GetName(), *Blueprint, PreserveFunctions ? TEXT("true") : TEXT("false"));
|
||||
*MCPUtils::FormatName(FoundInterface), *Blueprint, PreserveFunctions ? TEXT("true") : TEXT("false"));
|
||||
|
||||
FBlueprintEditorUtils::RemoveInterface(BP, InterfacePath, PreserveFunctions);
|
||||
|
||||
@@ -102,8 +102,8 @@ public:
|
||||
|
||||
|
||||
UE_LOG(LogTemp, Display, TEXT("BlueprintMCP: Removed interface '%s' from '%s'"),
|
||||
*FoundInterface->GetName(), *Blueprint);
|
||||
*MCPUtils::FormatName(FoundInterface), *Blueprint);
|
||||
|
||||
Result->SetStringField(TEXT("interfaceName"), FoundInterface->GetName());
|
||||
Result->SetStringField(TEXT("interfaceName"), MCPUtils::FormatName(FoundInterface));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user