浏览代码

fix releasing from cached editor error

/main
RSlysz 6 年前
当前提交
95352946
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.Preview.cs

7
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.Preview.cs


return false; // We only handle one preview for reflection probes
// Ensure valid cube map editor (if possible)
if (ValidPreviewSetup())
if (ValidPreviewSetup() && m_CubemapEditor == null)
{
Editor editor = m_CubemapEditor;
CreateCachedEditor(((ReflectionProbe)target).texture, typeof(HDCubemapInspector), ref editor);

{
var p = target as ReflectionProbe;
return p != null && p.texture != null;
}
private void OnDestroy()
{
DestroyImmediate(m_CubemapEditor);
}
}
}
正在加载...
取消
保存