Skip to content

Commit 09d48c9

Browse files
committed
Delayed update port fields
1 parent a926eee commit 09d48c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/BaseNodeView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void Initialize(BaseGraphView owner, BaseNode node)
7878
owner.computeOrderUpdated += ComputeOrderUpdatedCallback;
7979
node.onMessageAdded += AddMessageView;
8080
node.onMessageRemoved += RemoveMessageView;
81-
node.onPortsUpdated += UpdatePortsForField;
81+
node.onPortsUpdated += a => schedule.Execute(_ => UpdatePortsForField(a)).ExecuteLater(0);
8282

8383
styleSheets.Add(Resources.Load<StyleSheet>(baseNodeStyle));
8484

0 commit comments

Comments
 (0)