mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-13 02:28:45 +08:00
Multiple dynamicPortList IndexOutofRange fix. (#176)
This commit is contained in:
parent
723ecc43c1
commit
93fa101af8
@ -293,7 +293,7 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new { index = -1, port = (XNode.NodePort) null };
|
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();
|
List<XNode.NodePort> dynamicPorts = indexedPorts.OrderBy(x => x.index).Select(x => x.port).ToList();
|
||||||
|
|
||||||
ReorderableList list = null;
|
ReorderableList list = null;
|
||||||
@ -423,7 +423,7 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new { index = -1, port = (XNode.NodePort) null };
|
return new { index = -1, port = (XNode.NodePort) null };
|
||||||
});
|
}).Where(x => x.port != null);
|
||||||
dynamicPorts = indexedPorts.OrderBy(x => x.index).Select(x => x.port).ToList();
|
dynamicPorts = indexedPorts.OrderBy(x => x.index).Select(x => x.port).ToList();
|
||||||
|
|
||||||
int index = rl.index;
|
int index = rl.index;
|
||||||
@ -491,4 +491,4 @@ namespace XNodeEditor {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user