diff --git a/Source/Flow/Private/Nodes/FlowNode.cpp b/Source/Flow/Private/Nodes/FlowNode.cpp index be876bee..c74b8143 100644 --- a/Source/Flow/Private/Nodes/FlowNode.cpp +++ b/Source/Flow/Private/Nodes/FlowNode.cpp @@ -1133,17 +1133,6 @@ FString UFlowNode::GetProgressAsString(const float Value) return FString::Printf(TEXT("%.*f"), 2, Value); } -#if WITH_EDITOR -UFlowNode* UFlowNode::GetInspectedInstance() const -{ - if (const UFlowAsset* FlowInstance = GetFlowAsset()->GetInspectedInstance()) - { - return FlowInstance->GetNode(GetGuid()); - } - - return nullptr; -} - FString UFlowNode::GetStatusStringForNodeAndAddOns() const { FString CombinedStatusString = GetStatusString(); @@ -1170,6 +1159,17 @@ FString UFlowNode::GetStatusStringForNodeAndAddOns() const return CombinedStatusString; } +#if WITH_EDITOR +UFlowNode* UFlowNode::GetInspectedInstance() const +{ + if (const UFlowAsset* FlowInstance = GetFlowAsset()->GetInspectedInstance()) + { + return FlowInstance->GetNode(GetGuid()); + } + + return nullptr; +} + bool UFlowNode::GetStatusBackgroundColor(FLinearColor& OutColor) const { return K2_GetStatusBackgroundColor(OutColor); diff --git a/Source/Flow/Private/Nodes/FlowNodeBase.cpp b/Source/Flow/Private/Nodes/FlowNodeBase.cpp index fd80a597..5b23fe7e 100644 --- a/Source/Flow/Private/Nodes/FlowNodeBase.cpp +++ b/Source/Flow/Private/Nodes/FlowNodeBase.cpp @@ -263,12 +263,12 @@ TArray UFlowNodeBase::GetContextOutputs() const return ContextOutputs; } +#endif // WITH_EDITOR FString UFlowNodeBase::GetStatusString() const { return K2_GetStatusString(); } -#endif // WITH_EDITOR UFlowAsset* UFlowNodeBase::GetFlowAsset() const { diff --git a/Source/Flow/Public/Nodes/FlowNode.h b/Source/Flow/Public/Nodes/FlowNode.h index 9e2aec14..ec4deaca 100644 --- a/Source/Flow/Public/Nodes/FlowNode.h +++ b/Source/Flow/Public/Nodes/FlowNode.h @@ -368,8 +368,6 @@ class FLOW_API UFlowNode TMap GetWireRecords() const; TArray GetPinRecords(const FName& PinName, const EEdGraphPinDirection PinDirection) const; - // Information displayed while node is working - displayed over node as NodeInfoPopup - FString GetStatusStringForNodeAndAddOns() const; virtual bool GetStatusBackgroundColor(FLinearColor& OutColor) const; virtual FString GetAssetPath(); @@ -405,4 +403,7 @@ class FLOW_API UFlowNode UFUNCTION(BlueprintPure, Category = "FlowNode") static FString GetProgressAsString(float Value); + + // Information displayed while node is working - displayed over node as NodeInfoPopup + FString GetStatusStringForNodeAndAddOns() const; }; diff --git a/Source/Flow/Public/Nodes/FlowNodeBase.h b/Source/Flow/Public/Nodes/FlowNodeBase.h index e5441eff..c35b7c3a 100644 --- a/Source/Flow/Public/Nodes/FlowNodeBase.h +++ b/Source/Flow/Public/Nodes/FlowNodeBase.h @@ -366,6 +366,9 @@ class FLOW_API UFlowNodeBase // used when import graph from another asset virtual void PostImport() {} + void RequestReconstruction() const { (void) OnReconstructionRequested.ExecuteIfBound(); } +#endif + // Called by owning FlowNode to add to its Status String. // (may be multi-line) virtual FString GetStatusString() const;