Make sure we remember what material a mesh is using when we copy it.