Skip to content

Fix UiEdge node order in Graph Editor#2770

Merged
jstone-lucasfilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_edge_direction_fix
Feb 13, 2026
Merged

Fix UiEdge node order in Graph Editor#2770
jstone-lucasfilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_edge_direction_fix

Conversation

@jstone-lucasfilm
Copy link
Member

This changelist fixes a swapped argument order in the UiEdge constructor, where the upstream and downstream nodes were inverted relative to the usage of the constructor in the codebase.

Callers of the UiEdge constructor have been using the following convention, as seen in the Graph::createEdge method:

UiEdge newEdge = UiEdge(upNode, downNode, connectingInput);

But the constructor itself has been expecting arguments in the reverse order, as seen here:

UiEdge(UiNodePtr uiDown, UiNodePtr uiUp, mx::InputPtr input)

This changelist updates the arguments of the UiEdge constructor and all dependent code, making the semantics of UiEdge::getUp and UiEdge::getDown consistent across the Graph Editor codebase.

This changelist fixes a swapped argument order in the `UiEdge` constructor, where the upstream and downstream nodes were inverted relative to the usage of the constructor in the codebase.

Callers of the `UiEdge` constructor have been using the following convention, as seen in the `Graph::createEdge` method:

```
UiEdge newEdge = UiEdge(upNode, downNode, connectingInput);
```

But the constructor itself has been expecting arguments in the reverse order, as seen here:

```
UiEdge(UiNodePtr uiDown, UiNodePtr uiUp, mx::InputPtr input)
```

This changelist updates the arguments of the `UiEdge` constructor and all dependent code, making the semantics of `UiEdge::getUp` and `UiEdge::getDown` consistent across the Graph Editor codebase.
Copy link
Contributor

@lfl-eholthouser lfl-eholthouser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @jstone-lucasfilm!

@jstone-lucasfilm jstone-lucasfilm merged commit ad71ce0 into AcademySoftwareFoundation:main Feb 13, 2026
33 checks passed
@jstone-lucasfilm jstone-lucasfilm deleted the dev_edge_direction_fix branch February 13, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants