2626#include " EdGraphSchema_K2.h"
2727#include " Editor.h"
2828#include " Engine/MemberReference.h"
29- #include " Kismet/BlueprintTypeConversions.h"
3029#include " Kismet2/KismetEditorUtilities.h"
3130#include " ScopedTransaction.h"
3231
32+ #if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION < 6
33+ #include " Kismet/BlueprintTypeConversions.h"
34+ #else
35+ #include " Runtime/Engine/Internal/Kismet/BlueprintTypeConversions.h"
36+ #endif
37+
3338#include UE_INLINE_GENERATED_CPP_BY_NAME(FlowGraphSchema)
3439
3540#define LOCTEXT_NAMESPACE " FlowGraphSchema"
@@ -811,6 +816,8 @@ TSharedPtr<FEdGraphSchemaAction> UFlowGraphSchema::GetCreateCommentAction() cons
811816 return TSharedPtr<FEdGraphSchemaAction>(static_cast <FEdGraphSchemaAction*>(new FFlowGraphSchemaAction_NewComment));
812817}
813818
819+
820+ PRAGMA_DISABLE_DEPRECATION_WARNINGS
814821void UFlowGraphSchema::OnPinConnectionDoubleCicked (UEdGraphPin* PinA, UEdGraphPin* PinB, const FVector2D& GraphPosition) const
815822{
816823 if (!FFlowPin::IsExecPinCategory (PinA->PinType .PinCategory ) || !FFlowPin::IsExecPinCategory (PinB->PinType .PinCategory ))
@@ -832,6 +839,16 @@ void UFlowGraphSchema::OnPinConnectionDoubleCicked(UEdGraphPin* PinA, UEdGraphPi
832839 PinA->MakeLinkTo ((PinA->Direction == EGPD_Output) ? NewReroute->InputPins [0 ] : NewReroute->OutputPins [0 ]);
833840 PinB->MakeLinkTo ((PinB->Direction == EGPD_Output) ? NewReroute->InputPins [0 ] : NewReroute->OutputPins [0 ]);
834841}
842+ PRAGMA_ENABLE_DEPRECATION_WARNINGS
843+
844+ #if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 6
845+ void UFlowGraphSchema::OnPinConnectionDoubleCicked (UEdGraphPin* PinA, UEdGraphPin* PinB, const FVector2f& GraphPosition) const
846+ {
847+ PRAGMA_DISABLE_DEPRECATION_WARNINGS
848+ return OnPinConnectionDoubleCicked (PinA, PinB, FVector2D (GraphPosition));
849+ PRAGMA_ENABLE_DEPRECATION_WARNINGS
850+ }
851+ #endif
835852
836853bool UFlowGraphSchema::IsCacheVisualizationOutOfDate (int32 InVisualizationCacheID) const
837854{
0 commit comments