浏览代码

try/catch camera rendering block only on EDITOR

/main
Felipe Lira 6 年前
当前提交
756a5d21
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs

4
com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs


context.ExecuteCommandBuffer(cmd);
cmd.Clear();
#if UNITY_EDITOR
#endif
{
m_IsCameraRendering = true;
#if UNITY_EDITOR

m_Renderer.Setup(ref context, ref m_CullResults, ref renderingData);
m_Renderer.Execute(ref context, ref m_CullResults, ref renderingData);
}
#if UNITY_EDITOR
catch (Exception)
{
CommandBufferPool.Release(cmd);

#endif
{
m_IsCameraRendering = false;
}

正在加载...
取消
保存