mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Fixed formatting and compile error
This commit is contained in:
parent
36c5c3f922
commit
1438b1463a
@ -503,7 +503,7 @@ namespace XNodeEditor {
|
|||||||
if (stoppedDraggingPort) {
|
if (stoppedDraggingPort) {
|
||||||
if (draggedPort != null && draggedPort.IsOutput) {
|
if (draggedPort != null && draggedPort.IsOutput) {
|
||||||
GenericMenu menu = new GenericMenu();
|
GenericMenu menu = new GenericMenu();
|
||||||
graphEditor.AddContextMenuItems(menu, ConnectOnCreate);
|
graphEditor.AddContextMenuItems(menu);
|
||||||
menu.DropDown(new Rect(Event.current.mousePosition, Vector2.zero));
|
menu.DropDown(new Rect(Event.current.mousePosition, Vector2.zero));
|
||||||
}
|
}
|
||||||
stoppedDraggingPort = false;
|
stoppedDraggingPort = false;
|
||||||
|
|||||||
@ -53,7 +53,7 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
menu.AddItem(new GUIContent(path), false, () => {
|
menu.AddItem(new GUIContent(path), false, () => {
|
||||||
CreateNode(type, pos);
|
CreateNode(type, pos);
|
||||||
if(!NodeEditorWindow.stoppedDraggingPort) NodeEditorWindow.current.ConnectOnCreate();
|
if (!NodeEditorWindow.stoppedDraggingPort) NodeEditorWindow.current.ConnectOnCreate();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
menu.AddSeparator("");
|
menu.AddSeparator("");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user