Skip to content

Commit e6d5b9e

Browse files
committed
UE 5.6 support
1 parent f04759d commit e6d5b9e

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

Source/FlowEditor/FlowEditor.Build.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public FlowEditor(ReadOnlyTargetRules target) : base(target)
5757
"PropertyPath",
5858
"RenderCore",
5959
"Sequencer",
60+
"SequencerCore",
6061
"Slate",
6162
"SlateCore",
6263
"SourceControl",

Source/FlowEditor/Private/Graph/FlowGraphSchema.cpp

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@
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
814821
void 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

836853
bool UFlowGraphSchema::IsCacheVisualizationOutOfDate(int32 InVisualizationCacheID) const
837854
{

Source/FlowEditor/Public/Graph/FlowGraphSchema.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ class FLOWEDITOR_API UFlowGraphSchema : public UEdGraphSchema
5353
virtual void BreakPinLinks(UEdGraphPin& TargetPin, bool bSendsNodeNotification) const override;
5454
virtual int32 GetNodeSelectionCount(const UEdGraph* Graph) const override;
5555
virtual TSharedPtr<FEdGraphSchemaAction> GetCreateCommentAction() const override;
56+
57+
PRAGMA_DISABLE_DEPRECATION_WARNINGS
5658
virtual void OnPinConnectionDoubleCicked(UEdGraphPin* PinA, UEdGraphPin* PinB, const FVector2D& GraphPosition) const override;
59+
PRAGMA_ENABLE_DEPRECATION_WARNINGS
60+
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 6
61+
virtual void OnPinConnectionDoubleCicked(UEdGraphPin* PinA, UEdGraphPin* PinB, const FVector2f& GraphPosition) const override;
62+
#endif
63+
5764
virtual bool IsCacheVisualizationOutOfDate(int32 InVisualizationCacheID) const override;
5865
virtual int32 GetCurrentVisualizationCacheID() const override;
5966
virtual void ForceVisualizationCacheClear() const override;

0 commit comments

Comments
 (0)