void normalShadingItem_BeforeChangingShadingMode(EnginePanel.ShadingModeChangedEventArgs e) { if ( (EditorManager.Scene != null && EditorManager.Scene.RendererNodeClass == IRendererNodeManager.RENDERERNODECLASS_DEFERRED) && (EditorManager.ActiveView.ProjectionMode != VisionViewBase.ProjectionMode_e.Perspective)) { //switch back to perspective because we do not support deferred + orthogonal EditorManager.ActiveView.ProjectionMode = VisionViewBase.ProjectionMode_e.Perspective; } }
void item_AfterChangingShadingMode(EnginePanel.ShadingModeChangedEventArgs e) { // After manually changing shading mode, revert possibly set flag that a shading mode should be restored // after a manual shading mode change _restorePerspectiveNormalShadingMode = false; }