浏览代码

Fixed a null pointer exception with DebugMenu State at runtime.

/RenderPassXR_Sandbox
Julien Ignace 8 年前
当前提交
3f1e74f2
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 6
      Assets/ScriptableRenderPipeline/Core/Debugging/DebugMenuManager.cs
  2. 2
      Assets/ScriptableRenderPipeline/Core/Debugging/DebugPanel.cs

6
Assets/ScriptableRenderPipeline/Core/Debugging/DebugMenuManager.cs


m_UpdateFromItemStateRequired = true;
}
// debug state will be null at runtime.
return m_DebugMenuState.FindDebugItemState(itemName, menuName);
return (m_DebugMenuState != null) ? m_DebugMenuState.FindDebugItemState(itemName, menuName) : null;
m_DebugMenuState.AddDebugItemState(state);
if(m_DebugMenuState != null)
m_DebugMenuState.AddDebugItemState(state);
}
public DebugPanel GetDebugPanel(int index)

2
Assets/ScriptableRenderPipeline/Core/Debugging/DebugPanel.cs


m_Handler.ClampValues(m_Getter, m_Setter);
// Update state for serialization/undo
if(record)
if(record && m_State != null)
m_State.SetValue(m_Getter());
}
}

正在加载...
取消
保存