浏览代码

Fix null reference exception

/main
Peter Bay Bastian 7 年前
当前提交
dbebb5a9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/AbstractMaterialGraphEditWindow.cs

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


m_GraphEditorView = new GraphEditorView();
rootVisualContainer.Add(m_GraphEditorView);
var presenter = CreateInstance<GraphEditorPresenter>();
presenter.Initialize(inMemoryAsset, this, selected.name);
presenter.Initialize(inMemoryAsset, this, selected != null ? selected.name : "");
m_GraphEditorView.presenter = presenter;
}

正在加载...
取消
保存