浏览代码

Add null check for serialized object in MaterialGraphEditWindow

/main
Jens Holm 7 年前
当前提交
706ca05d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphEditWindow.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/MaterialGraphEditWindow.cs


void Update()
{
if (graphObject == null)
return;
var materialGraph = graphObject.graph as AbstractMaterialGraph;
if (materialGraph == null)
return;

正在加载...
取消
保存