public void OnEditorEvent(uint eventType, IntPtr eventPtr)
{
if (eventType == EditorEventUndo.TypeId)
{
this.ClearSelectionState();
this.m_selection.RemoveInvalidObjects();
this.m_selection.ComputeCenter();
this.UpdateSelectionState();
this.UpdateSelection();
}
}