Skip to content

Commit

Permalink
Fixing nodes not updating on change of the link target
Browse files Browse the repository at this point in the history
  • Loading branch information
K0369 committed Oct 22, 2023
1 parent 2403206 commit 93b154b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void OnLinkAdded(BaseLinkModel link)

private void OnLinKTargetChanged(BaseLinkModel link, Anchor? oldTarget, Anchor? newTarget)
{
if (oldTarget == null && newTarget != null) // First attach
if (link.IsAttached && newTarget is not null)
{
(newTarget.Model as PortModel)!.Parent.Refresh();
}
Expand Down

0 comments on commit 93b154b

Please sign in to comment.