Skip to content

Commit 91ddb20

Browse files
committed
Fixed port sync code
1 parent 03452ed commit 91ddb20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@ void UpdatePortViewWithPorts(NodePortContainer ports, List< PortView > portViews
969969
SyncPortCounts(ports, new PortView[]{});
970970
else if (ports.Count == 0) // Same when there is no ports
971971
SyncPortCounts(new NodePort[]{}, portViews);
972+
else if (portViews.Count != ports.Count)
973+
SyncPortCounts(ports, portViews);
972974
else
973975
{
974976
var p = ports.GroupBy(n => n.fieldName);

0 commit comments

Comments
 (0)