Disable operator register and redo flags because it might modify non-mesh data when in edit mode. This doesn't work properly with current undo stack design.