浏览代码

Allow mesh in preview to be null / none selected as default sphere mesh

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

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs


void OnPreviewMeshChanged(ChangeEvent<UnityEngine.Object> changeEvent)
{
if (changeEvent.newValue == null)
{
m_PreviewHandle.mesh = null;
return;
}
Mesh changedMesh = changeEvent.newValue as Mesh;
if (changedMesh)

正在加载...
取消
保存