浏览代码

Disable ReSharper warning about delegate subtraction as it is not valid for our use case

/main
Peter Bay Bastian 8 年前
当前提交
e73c926b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphInspector.cs

3
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphInspector.cs


{
if (value == m_PreviewNode)
return;
// ReSharper disable once DelegateSubtraction
// This is only an issue when subtracting a list of callbacks
// (which will subtract that specific subset, i.e. `{A B C} - {A B} = {C}`, but `{A B C} - {A C} -> {A B C}`)
ForEachChild(m_PreviewNode, (node) => node.onModified -= OnPreviewNodeModified);
m_PreviewNode = value;
m_NodePreviewPresenter.Initialize(value);

正在加载...
取消
保存