internal static void UpdateMeshHandles(bool selectionOrVertexCountChanged = true) { if (!s_Instance) { return; } try { EditorMeshHandles.RebuildSelectedHandles(MeshSelection.topInternal, selectMode); } catch { // happens on undo when c++ object is gone but c# isn't in the know EditorMeshHandles.ClearHandles(); } }