1
0
mirror of https://github.com/Siccity/xNodeGroups.git synced 2025-12-20 01:06:02 +08:00

Connection point fix addition

Ignore null-nodes in node group editor
This commit is contained in:
RomanZanevski 2022-03-23 08:25:45 +01:00 committed by GitHub
parent 4f4585bd6a
commit f8553b8e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ namespace XNodeEditor.NodeGroups {
selection.AddRange(group.GetNodes());
// Select Reroutes
foreach (Node node in target.graph.nodes) {
if (node != null)
{
foreach (NodePort port in node.Ports) {
for (int i = 0; i < port.ConnectionCount; i++) {
List<Vector2> reroutes = port.GetReroutePoints(i);
@ -63,6 +65,11 @@ namespace XNodeEditor.NodeGroups {
}
}
}
else
{
continue;
}
}
Selection.objects = selection.Distinct().ToArray();
}
break;