We need to update object data, like when removing a mat slot, since some mat indices might have become invalid!