Ejemplo n.º 1
0
        private void OpenSceneInspector()
        {
            if (CurrentRaytracer != null)
            {
                if (SceneInspector == null)
                {
                    SceneInspector = new SceneInspector(CurrentRaytracer.Scene);
                    SceneInspector.DisplaySettingChanged += SceneInspector_DisplaySettingChanged;
                    SceneInspector.Disposed += SceneInspector_Disposed;
                }

                if (SceneInspector.Visible)
                {
                    SceneInspector.Select();
                }
                else
                {
                    SceneInspector.Show(this);
                }
            }
        }
Ejemplo n.º 2
0
 private void SceneInspector_Disposed(object sender, EventArgs e)
 {
     SceneInspector = null;
 }