Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ TSharedPtr<FJsonObject> FAnimationBlueprintUtils::ExecuteBatchOperations(
{
for (const auto& Pair : (*BindingsObj)->Values)
{
Bindings.Add(Pair.Key, Pair.Value->AsString());
Bindings.Add(FString(*Pair.Key), Pair.Value->AsString());
}
}
bOpSuccess = SetStateBlendSpace(
Expand Down
4 changes: 2 additions & 2 deletions UnrealClaude/Source/UnrealClaude/Private/MCP/MCPToolBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ class FMCPToolBase : public IMCPTool
TArray<FString> Unknown;
for (const auto& Pair : Params->Values)
{
if (!Known.Contains(Pair.Key))
if (!Known.Contains(FString(*Pair.Key)))
{
Unknown.Add(Pair.Key);
Unknown.Add(FString(*Pair.Key));
}
}
return Unknown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ FMCPToolResult FMCPTool_AnimBlueprintModify::HandleSetStateAnimation(const FStri
{
for (const auto& Pair : (*BindingsObj)->Values)
{
Bindings.Add(Pair.Key, Pair.Value->AsString());
Bindings.Add(FString(*Pair.Key), Pair.Value->AsString());
}
}
bSuccess = FAnimationBlueprintUtils::SetStateBlendSpace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ FMCPToolResult FMCPTool_BlueprintModify::ExecuteAddNode(const TSharedRef<FJsonOb
if (PinValue.Value->TryGetString(PinValueStr))
{
FString PinError;
FBlueprintUtils::SetPinDefaultValue(Graph, NodeId, PinValue.Key, PinValueStr, PinError);
FBlueprintUtils::SetPinDefaultValue(Graph, NodeId, FString(*PinValue.Key), PinValueStr, PinError);
}
}
}
Expand Down Expand Up @@ -545,7 +545,7 @@ bool FMCPTool_BlueprintModify::CreateNodesFromSpec(
if (PinValue.Value->TryGetString(PinValueStr))
{
FString PinError;
FBlueprintUtils::SetPinDefaultValue(Graph, NodeId, PinValue.Key, PinValueStr, PinError);
FBlueprintUtils::SetPinDefaultValue(Graph, NodeId, FString(*PinValue.Key), PinValueStr, PinError);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ bool FMCPTool_Material::ApplyParametersFromJson(UMaterialInstanceConstant* MatIn
if (Pair.Value->TryGetNumber(Value))
{
FString Error;
if (!SetScalarParameter(MatInst, Pair.Key, static_cast<float>(Value), Error))
if (!SetScalarParameter(MatInst, FString(*Pair.Key), static_cast<float>(Value), Error))
{
Errors.Add(Error);
bAllSuccess = false;
Expand All @@ -566,7 +566,7 @@ bool FMCPTool_Material::ApplyParametersFromJson(UMaterialInstanceConstant* MatIn
(*ColorObj)->TryGetNumberField(TEXT("a"), Color.A);

FString Error;
if (!SetVectorParameter(MatInst, Pair.Key, Color, Error))
if (!SetVectorParameter(MatInst, FString(*Pair.Key), Color, Error))
{
Errors.Add(Error);
bAllSuccess = false;
Expand All @@ -584,7 +584,7 @@ bool FMCPTool_Material::ApplyParametersFromJson(UMaterialInstanceConstant* MatIn
if (Pair.Value->TryGetString(TexturePath))
{
FString Error;
if (!SetTextureParameter(MatInst, Pair.Key, TexturePath, Error))
if (!SetTextureParameter(MatInst, FString(*Pair.Key), TexturePath, Error))
{
Errors.Add(Error);
bAllSuccess = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ bool FMCPTool_SetProperty::SetStructPropertyValue(FStructProperty* StructProp, v
for (const auto& Pair : (*ObjVal)->Values)
{
if (!bFirst) TextRepresentation += TEXT(",");
TextRepresentation += Pair.Key.ToUpper() + TEXT("=");
TextRepresentation += FString(*Pair.Key).ToUpper() + TEXT("=");

double NumVal;
FString StrVal;
Expand Down