浏览代码

* Fixed keyboard shortcuts.

* Reverted crash on node deletion fix as it's fixed in the latest GraphView.
/main
Yuanxing Cai 7 年前
当前提交
f0b691e4
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 3
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs
  2. 8
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs

3
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs


m_CurrentControlPresenter = new List<GraphControlPresenter>();
usePixelCaching = false;
// Nodes need to be focusable to make the keyboard shortcuts work.
focusIndex = 0;
}
private void AddControls(GraphNodePresenter nodeData)

8
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/SerializableGraphView.cs


Insert(0, new GridBackground());
typeFactory[typeof(GraphNodePresenter)] = typeof(NodeDrawer);
// Make this GraphView focusable or keyboard shortcuts won't work.
focusIndex = 0;
}
// TODO JOCE Remove the "new" here. Use the base class' impl

ClearSelection();
foreach (var drawer in selectedDrawers)
{
if (drawer != null)
AddToSelection(drawer);
}
AddToSelection(drawer);
}
public void SetGlobalSelection()

正在加载...
取消
保存