internal override ActionResult EndActivation() { Clear(); ToolManager.RestorePreviousTool(); EditorApplication.delayCall += () => ProBuilderEditor.ResetToLastSelectMode(); return(new ActionResult(ActionResult.Status.Success, "End Poly Shape")); }
static void CheckForSelectModeAfterToolQuit() { var toolType = EditorToolUtility.GetEnumWithEditorTool(EditorToolManager.activeTool); if (toolType != UnityEditor.Tool.Custom && toolType != UnityEditor.Tool.None) { ProBuilderEditor.ResetToLastSelectMode(); } }