浏览代码

Renamed Flags.ForceUpdate => Flags.EditorForceUpdate

/main
Frédéric Vauchelles 7 年前
当前提交
7c52d2d3
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/Debugging/DebugUI.Panel.cs
  2. 2
      ScriptableRenderPipeline/Core/CoreRP/Debugging/DebugUI.cs
  3. 6
      ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugWindow.cs
  4. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs

2
ScriptableRenderPipeline/Core/CoreRP/Debugging/DebugUI.Panel.cs


public bool isEditorOnly { get { return (flags & Flags.EditorOnly) != 0; } }
public bool isRuntimeOnly { get { return (flags & Flags.RuntimeOnly) != 0; } }
public bool forceUpdate { get { return (flags & Flags.ForceUpdate) != 0; } }
public bool editorForceUpdate { get { return (flags & Flags.EditorForceUpdate) != 0; } }
public ObservableList<Widget> children { get; private set; }
public event Action<Panel> onSetDirty = delegate { };

2
ScriptableRenderPipeline/Core/CoreRP/Debugging/DebugUI.cs


None = 0,
EditorOnly = 1 << 1,
RuntimeOnly = 1 << 2,
ForceUpdate = 1 << 3
EditorForceUpdate = 1 << 3
}
// Base class for all debug UI widgets

6
ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugWindow.cs


var selectedPanelIndex = m_Settings.selectedPanel;
if (selectedPanelIndex >= 0
&& selectedPanelIndex < panels.Count
&& panels[selectedPanelIndex].forceUpdate)
&& panels[selectedPanelIndex].editorForceUpdate)
EditorApplication.update += Repaint;
}

var previousPanel = m_Settings.selectedPanel >= 0 && m_Settings.selectedPanel < panels.Count
? panels[m_Settings.selectedPanel]
: null;
if (previousPanel != null && previousPanel.forceUpdate && !panel.forceUpdate)
if (previousPanel != null && previousPanel.editorForceUpdate && !panel.editorForceUpdate)
else if ((previousPanel == null || !previousPanel.forceUpdate) && panel.forceUpdate)
else if ((previousPanel == null || !previousPanel.editorForceUpdate) && panel.editorForceUpdate)
EditorApplication.update += Repaint;
m_Settings.selectedPanel = i;
}

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs


m_DebugScreenSpaceTracingItems = list.ToArray();
var panel = DebugManager.instance.GetPanel(k_PanelScreenSpaceTracing, true);
panel.flags |= DebugUI.Flags.ForceUpdate;
panel.flags |= DebugUI.Flags.EditorForceUpdate;
panel.children.Add(m_DebugScreenSpaceTracingItems);
}

正在加载...
取消
保存