Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MothDoctor committed Nov 15, 2022
1 parent f175c96 commit 2226730
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/Flow/Private/Nodes/FlowNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ void UFlowNode::PostLoad()
FixNode(nullptr);
}

void UFlowNode::FixNode(UEdGraphNode* NewGraph)
void UFlowNode::FixNode(UEdGraphNode* NewGraphNode)
{
// Fix any node pointers that may be out of date
if (NewGraph)
if (NewGraphNode)
{
GraphNode = NewGraph;
GraphNode = NewGraphNode;
}

// v1.1 upgraded pins to be defined as structs
Expand Down
2 changes: 1 addition & 1 deletion Source/Flow/Public/Nodes/FlowNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FLOW_API UFlowNode : public UObject, public IVisualLoggerDebugSnapshotInte
// --

// Opportunity to update node's data before UFlowGraphNode would call ReconstructNode()
virtual void FixNode(UEdGraphNode* NewGraph);
virtual void FixNode(UEdGraphNode* NewGraphNode);
#endif

UEdGraphNode* GetGraphNode() const { return GraphNode; }
Expand Down
2 changes: 1 addition & 1 deletion Source/FlowEditor/Private/Graph/Nodes/FlowGraphNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ EFlowSignalMode UFlowGraphNode::GetSignalMode() const

bool UFlowGraphNode::CanSetSignalMode(const EFlowSignalMode Mode) const
{
return FlowNode ? (FlowNode->AllowedSignalModes.Contains(Mode) && FlowNode->SignalMode != Mode) : false;
return FlowNode ? (FlowNode->AllowedSignalModes.Contains(Mode) && FlowNode->SignalMode != Mode) : false;
}

#undef LOCTEXT_NAMESPACE

0 comments on commit 2226730

Please sign in to comment.