浏览代码

Merge pull request #1641 from Unity-Technologies/fix/ReflectionProbe-material-not-cleared-correctly

Fix ReflectionProbe material clear
/main
GitHub 6 年前
当前提交
5fdde90a
共有 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);
}
}
}
正在加载...
取消
保存