Ejemplo n.º 1
0
        /// <summary>
        /// set the new solid manipulation mode
        /// </summary>
        /// <param name="mode"></param>
        private void SetSolidManipulationMode(string mode)
        {
            CurrentTool?.Deinitialize();

            switch (mode)
            {
            case "brush":
                CurrentTool = new SolidManipulationTool();
                textureProperties.Enabled = true;
                break;

            case "face":
                CurrentTool = new SolidFaceTool();
                textureProperties.Enabled = true;
                break;

            case "vertex":
                CurrentTool = new SolidVertexTool();
                textureProperties.Enabled = false;
                break;
            }

            CurrentTool?.Initialize(this);

            UpdateSolidManipulationToolbar();
            UpdateSolidPropertiesControl();
            UpdateCutCopyPasteToolbar();
            UpdateGroupToolbar();

            RenderViewports();
        }