예제 #1
0
        public void SetActive()
        {
            if (!Sledge.Settings.View.KeepSelectedTool)
            {
                ToolManager.Activate(_memory.SelectedTool);
            }
            if (!Sledge.Settings.View.KeepCameraPositions)
            {
                _memory.RestoreViewports(ViewportManager.Viewports);
            }

            ViewportManager.AddContext3D(new WidgetLinesRenderable());
            Renderer.Register(ViewportManager.Viewports);
            ViewportManager.AddContextAll(new ToolRenderable());
            ViewportManager.AddContextAll(new HelperRenderable(this));

            _subscriptions.Subscribe();

            RenderAll();
        }