浏览代码

Fix initialization of vector properties when duplicating subgraphs

/main
Matt Dean 6 年前
当前提交
b7161c18
共有 3 个文件被更改,包括 7 次插入2 次删除
  1. 4
      com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs
  2. 4
      com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
  3. 1
      com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs

4
com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs


string[] m_Labels;
public Vector1MaterialSlot()
{}
{
m_Labels = new[] { "X" };
}
public Vector1MaterialSlot(
int slotId,

4
com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs


string[] m_Labels;
public Vector2MaterialSlot()
{}
{
m_Labels = new[] { "X", "Y" };
}
public Vector2MaterialSlot(
int slotId,

1
com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs


public Vector3MaterialSlot()
{
m_Labels = new[] { "X", "Y", "Z" };
}
public Vector3MaterialSlot(

正在加载...
取消
保存