Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Fix deprecated class usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ufna committed Nov 12, 2018
1 parent 0289a62 commit 22f2d3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Source/VaRestEditorPlugin/Private/VaRest_BreakJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void UVaRest_BreakJson::AllocateDefaultPins()
const UEdGraphSchema_K2* K2Schema = GetDefault<UEdGraphSchema_K2>();

UClass *Class = Cast<UClass>(StaticLoadObject(UClass::StaticClass(), NULL, TEXT("class'VaRestPlugin.VaRestJsonObject'")));
UEdGraphPin* Pin = CreatePin(EGPD_Input, K2Schema->PC_Object, TEXT(""), Class, false, false, TEXT("Target"));
UEdGraphPin* Pin = CreatePin(EGPD_Input, K2Schema->PC_Object, TEXT(""), Class, TEXT("Target"));

#if ENGINE_MINOR_VERSION >= 17
K2Schema->SetPinAutogeneratedDefaultValueBasedOnType(Pin);
Expand Down Expand Up @@ -299,7 +299,9 @@ void UVaRest_BreakJson::CreateProjectionPins(UEdGraphPin *Source)
break;
}

UEdGraphPin *OutputPin = CreatePin(EGPD_Output, Type, TEXT(""), Subtype, (*it).bIsArray, false, (*it).Name);
UEdGraphNode::FCreatePinParams OutputPinParams;
OutputPinParams.ContainerType = (*it).bIsArray ? EPinContainerType::Array : EPinContainerType::None;
UEdGraphPin *OutputPin = CreatePin(EGPD_Output, Type, TEXT(""), Subtype, FName(*(*it).Name), OutputPinParams);
}
}

Expand Down Expand Up @@ -488,7 +490,7 @@ void UVaRest_MakeJson::AllocateDefaultPins()
const UEdGraphSchema_K2* K2Schema = GetDefault<UEdGraphSchema_K2>();

UClass *Class = Cast<UClass>(StaticLoadObject(UClass::StaticClass(), NULL, TEXT("class'VaRestPlugin.VaRestJsonObject'")));
UEdGraphPin* Pin = CreatePin(EGPD_Output, K2Schema->PC_Object, TEXT(""), Class, false, false, TEXT("Target"));
UEdGraphPin* Pin = CreatePin(EGPD_Output, K2Schema->PC_Object, TEXT(""), Class, TEXT("Target"));

#if ENGINE_MINOR_VERSION >= 17
K2Schema->SetPinAutogeneratedDefaultValueBasedOnType(Pin);
Expand Down Expand Up @@ -586,7 +588,9 @@ void UVaRest_MakeJson::CreateProjectionPins(UEdGraphPin *Source)
break;
}

UEdGraphPin *InputPin = CreatePin(EGPD_Input, Type, TEXT(""), Subtype, (*it).bIsArray, false, (*it).Name);
UEdGraphNode::FCreatePinParams InputPinParams;
InputPinParams.ContainerType = (*it).bIsArray ? EPinContainerType::Array : EPinContainerType::None;
UEdGraphPin *InputPin = CreatePin(EGPD_Input, Type, TEXT(""), Subtype, FName(*(*it).Name), InputPinParams);
InputPin->SetSavePinIfOrphaned(false);
}
}
Expand Down

0 comments on commit 22f2d3a

Please sign in to comment.