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

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

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