浏览代码

Fix lingering preview shaders with errors

/main
Tim Cooper 7 年前
当前提交
42b8ed85
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewManager.cs

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewManager.cs


if (previewData.shader != null && MaterialGraphAsset.ShaderHasError(previewData.shader))
{
ShaderUtil.ClearShaderErrors(previewData.shader);
Object.DestroyImmediate(previewData.shader, true);
previewData.shader = null;
}

正在加载...
取消
保存