1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-06 15:24:55 +08:00

Multiple dynamicPortList IndexOutofRange fix. (#176)

This commit is contained in:
Mikhail 2019-07-22 01:41:58 +03:00 committed by Thor Brigsted
parent 723ecc43c1
commit 93fa101af8

View File

@ -293,7 +293,7 @@ namespace XNodeEditor {
}
}
return new { index = -1, port = (XNode.NodePort) null };
});
}).Where(x => x.port != null);
List<XNode.NodePort> dynamicPorts = indexedPorts.OrderBy(x => x.index).Select(x => x.port).ToList();
ReorderableList list = null;
@ -423,7 +423,7 @@ namespace XNodeEditor {
}
}
return new { index = -1, port = (XNode.NodePort) null };
});
}).Where(x => x.port != null);
dynamicPorts = indexedPorts.OrderBy(x => x.index).Select(x => x.port).ToList();
int index = rl.index;
@ -491,4 +491,4 @@ namespace XNodeEditor {
return list;
}
}
}
}