mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
made some variables and voids public
This commit is contained in:
parent
3b6135cde7
commit
01ca8e255f
@ -31,7 +31,7 @@ namespace XNodeEditor {
|
||||
private Rect selectionBox;
|
||||
private bool isDoubleClick = false;
|
||||
|
||||
private bool stoppedDraggingPort = true;
|
||||
public static bool stoppedDraggingPort = true;
|
||||
private XNode.NodePort draggedPort;
|
||||
|
||||
private struct RerouteReference {
|
||||
@ -529,11 +529,11 @@ namespace XNodeEditor {
|
||||
return windowRect.Contains(mousePos);
|
||||
}
|
||||
|
||||
private void ConnectOnCreate(object obj = default(object)) {
|
||||
public void ConnectOnCreate() {
|
||||
if (graph.nodes.Last().Ports.Where(r => r.IsInput == true).Any(r => r.ValueType == draggedPort.ValueType))
|
||||
draggedPort.Connect(graph.nodes.Last().Ports.Where(r => r.IsInput == true).Where(r => r.ValueType == draggedPort.ValueType).ToArray() [0]);
|
||||
else
|
||||
draggedPort.Connect(graph.nodes.Last().Ports.Where(r => r.IsInput == true).ToArray() [0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user