浏览代码

Avoid adding twice the same property (we should also have a test for that)

/main
Paul Demeulenaere 8 年前
当前提交
2629abf3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/PropertyGenerator.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/PropertyGenerator.cs


public void AddShaderProperty(PropertyChunk chunk)
{
if (m_Properties.Any(x => x.propertyName == chunk.propertyName))
return;
m_Properties.Add(chunk);
}

正在加载...
取消
保存