private void openLoop() { if (EndAction == EndActions.LOOP) waypoints.RemoveAt(waypoints.Count-1); //pop last element }