private void OnSceneRefreshed(RefreshSceneOpt opts) { if (opts.HasFlag(RefreshSceneOpt.Refresh_MainMenu)) { m_menuCut.Enabled = SceneEd.Instance.HasSelection; m_menuCopy.Enabled = SceneEd.Instance.HasSelection; m_menuPaste.Enabled = SceneEd.Instance.Clipboard.IsInUse; m_menuDelete.Enabled = SceneEd.Instance.HasSelection; } if (opts.HasFlag(RefreshSceneOpt.Refresh_Layout)) { m_uiLayoutTree.PopulateLayout(); } if (opts.HasFlag(RefreshSceneOpt.Refresh_Properties)) { m_uiPropertyGrid.GetGridCtrl().RefreshPropertyValues(); } // Rendering 排在后面是为了反映前两者的变化的结果 if (opts.HasFlag(RefreshSceneOpt.Refresh_Rendering)) { m_glRenderBuffer.Refresh(); } }
public void Emit_RefreshScene(RefreshSceneOpt opts) { if (RefreshScene != null) { RefreshScene(opts); } }
void OnSceneRefreshed(RefreshSceneOpt opts) { RefreshSelection(); }