public void DeleteSelected() { if (selectionMode == 0) { selMesh.DeleteVerts(selMesh.selVerts); } else { selMesh.DeleteFaces(selMesh.selFaces); } transformGizmo.SetPositionAuto(); SaveUndoState(); }