mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
Changed so CopySelectedNodes uses the same Linq-select as DuplicateSelectedNodes does.
This commit is contained in:
parent
6c38439e84
commit
56e84b7c92
@ -405,7 +405,7 @@ namespace XNodeEditor {
|
||||
}
|
||||
|
||||
public void CopySelectedNodes() {
|
||||
copyBuffer = Selection.objects.Where((o) => o != null && o is XNode.Node).Cast<XNode.Node>().ToArray();
|
||||
copyBuffer = Selection.objects.Select(x => x as XNode.Node).Where(x => x != null && x.graph == graph).ToArray();
|
||||
}
|
||||
|
||||
public void PasteNodes(Vector2 pos) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user