浏览代码

[shader graph] fix null ref exception.

/main
Tim Cooper 9 年前
当前提交
76820cdf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialWindow.cs

2
UnityProject/Assets/UnityShaderEditor/Editor/Source/Drawing/MaterialWindow.cs


private void Rebuild()
{
if (m_Canvas == null)
if (m_Canvas == null || m_MaterialGraph == null)
return;
m_DataSource.graph = m_MaterialGraph;

正在加载...
取消
保存