fix if object isn't in object mode when setting a mesh on it