Example #1
0
        internal override ActionResult EndActivation()
        {
            Clear();
            ToolManager.RestorePreviousTool();
            EditorApplication.delayCall += () => ProBuilderEditor.ResetToLastSelectMode();

            return(new ActionResult(ActionResult.Status.Success, "End Poly Shape"));
        }
Example #2
0
        static void CheckForSelectModeAfterToolQuit()
        {
            var toolType = EditorToolUtility.GetEnumWithEditorTool(EditorToolManager.activeTool);

            if (toolType != UnityEditor.Tool.Custom && toolType != UnityEditor.Tool.None)
            {
                ProBuilderEditor.ResetToLastSelectMode();
            }
        }