浏览代码

Right click no longer deselects nodes

/main
Peter Bay Bastian 7 年前
当前提交
3ffdcd59
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialGraphView.cs

3
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialGraphView.cs


{
public MaterialGraphView()
{
RegisterCallback<MouseUpEvent>(DoContextMenu, Capture.Capture);
this.AddManipulator(new ContentZoomer());
this.AddManipulator(new ContentDragger());
this.AddManipulator(new RectangleSelector());

Insert(0, new GridBackground());
RegisterCallback<MouseUpEvent>(DoContextMenu);
typeFactory[typeof(MaterialNodePresenter)] = typeof(MaterialNodeView);
typeFactory[typeof(GraphAnchorPresenter)] = typeof(NodeAnchor);

正在加载...
取消
保存