浏览代码

Remove `INode.onReplaced` (leftover from previous redo impl)

/main
Peter Bay Bastian 7 年前
当前提交
43fda89f
共有 3 个文件被更改,包括 0 次插入5 次删除
  1. 2
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Implementation/SerializableNode.cs
  2. 1
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Interfaces/INode.cs
  3. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs

2
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Implementation/SerializableNode.cs


public OnNodeModified onModified { get; set; }
public OnNodeReplaced onReplaced { get; set; }
public IEnumerable<T> GetInputSlots<T>() where T : ISlot
{
return GetSlots<T>().Where(x => x.isInputSlot);

1
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Interfaces/INode.cs


public interface INode
{
OnNodeModified onModified { get; set; }
OnNodeReplaced onReplaced { get; set; }
IGraph owner { get; set; }
Guid guid { get; }
Guid RewriteGuid();

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs


m_Preview = previewSystem.GetPreview(inNode);
m_Preview.onPreviewChanged += OnPreviewChanged;
node.onReplaced += OnReplaced;
// From OnDataChange()
m_PreviewToggle.text = node.previewExpanded ? "▲" : "▼";

正在加载...
取消
保存