mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 01:06:01 +08:00
removed lookup to list that the tryget is already doing
This commit is contained in:
parent
f167313957
commit
f77fa501f1
@ -39,7 +39,7 @@ namespace XNode {
|
||||
if (portDataCache.TryGetValue(nodeType, out typePortCache)) {
|
||||
staticPorts.EnsureCapacity(typePortCache.Count);
|
||||
for (int i = 0; i < typePortCache.Count; i++) {
|
||||
staticPorts.Add(typePortCache[i].fieldName, portDataCache[nodeType][i]);
|
||||
staticPorts.Add(typePortCache[i].fieldName, typePortCache[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user