mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!T(Node Editor Window Action) 右键Node恢复为GenericMenu
This commit is contained in:
parent
2b21b0ddc6
commit
1fece9c7c5
@ -276,9 +276,9 @@ namespace XNodeEditor {
|
||||
} else if (IsHoveringNode && IsHoveringTitle(hoveredNode)) {
|
||||
if (!Selection.Contains(hoveredNode)) SelectNode(hoveredNode, false);
|
||||
autoConnectOutput = null;
|
||||
MenuPopupWindow menu = new MenuPopupWindow();
|
||||
GenericMenu menu = new GenericMenu();
|
||||
NodeEditor.GetEditor(hoveredNode, this).AddContextMenuItems(menu);
|
||||
PopupWindow.Show(new Rect(Event.current.mousePosition, Vector2.zero),menu);
|
||||
menu.DropDown(new Rect(Event.current.mousePosition, Vector2.zero));
|
||||
e.Use(); // Fixes copy/paste context menu appearing in Unity 5.6.6f2 - doesn't occur in 2018.3.2f1 Probably needs to be used in other places.
|
||||
} else if (!IsHoveringNode) {
|
||||
autoConnectOutput = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user